How to get install 32 bit libraries onto CentOS 7.5

General support questions
Post Reply
harrywangca
Posts: 107
Joined: 2016/01/12 23:27:04
Location: Vista California

How to get install 32 bit libraries onto CentOS 7.5

Post by harrywangca » 2019/02/04 18:38:13

HI, I am moving up to CentOS 7.5 1804 64 bit. But I have some applications built on 32 bits. When I run and get errors. I see from red hat mentioned that 64 bit support 32 bit application running. I tried to install 32 bit libraries which I am short of, if using yum and it will automatically update and resolved dependencies and installed.
But now as company requirement is not to connect with internet, only can download the package to manually install. any help?

Thanks.

Harry

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to get install 32 bit libraries onto CentOS 7.5

Post by TrevorH » 2019/02/04 19:46:57

I am moving up to CentOS 7.5 1804 64 bit.
Please don't. The current and only supported version of CentOS 7 is 7.6.1810. Use that instead.

Once installed, mount the DVD on one of the directories mentioned in /etc/yum.repos.d/CentOS-Media.repo (or add your own to it) then enable that repo, disable all the others and then use yum provides '*/libraryname.so' (changing libraryname.so to the one you are missing) and it will tell you which package you need to install.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

harrywangca
Posts: 107
Joined: 2016/01/12 23:27:04
Location: Vista California

Re: How to get install 32 bit libraries onto CentOS 7.5

Post by harrywangca » 2019/02/07 16:52:33

Thank you Trevorh.

Can you please explain more clearly to me? thanks.
Like:
"mount the DVD on one of the directories mentioned in /etc/yum.repos.d/CentOS-Media.repo (or add your own to it) then enable that repo, disable all the others and then use yum provides '*/libraryname.so' (changing libraryname.so to the one you are missing) and it will tell you which package you need to install."

Thank you again.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to get install 32 bit libraries onto CentOS 7.5

Post by TrevorH » 2019/02/07 17:01:26

Look in /etc/yum.repos.d/CentOS-Media.repo. It contains a list of directories. If you mount the CentOS 7.6 iso on one of those then it will act as a yum repo locally. If you would rather mount the iso image on a different directory then edit the file and add yours to it. Now edit the other files in that directory and toggle "enabled=1" to "enabled=0" and yum will no longer attempt to use them so won't try to go online.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

harrywangca
Posts: 107
Joined: 2016/01/12 23:27:04
Location: Vista California

Re: How to get install 32 bit libraries onto CentOS 7.5

Post by harrywangca » 2019/02/08 15:28:37

Thanks TrevorH. I will try.....

mathog
Posts: 258
Joined: 2008/07/09 23:52:06

Re: How to get install 32 bit libraries onto CentOS 7.5

Post by mathog » 2019/02/08 17:44:19

Not being able to use a live internet link will make this way more difficult than it otherwise would be.

A compute node was recently built from scratch here, and it needed to be able to run some 32 bit binaries. The issue is that of course
there are potentially hundreds of libraries you might need to install. In this particular case this was sufficient:

yum -y groupinstall "Compatibility libraries"
yum -y install zlib.i686 #Y already present
yum -y install libpng.i686 #N
yum -y install fontconfig.i686 #N
yum -y install libpng12-1.2.50-10.el7.i686 #N
yum -y install libjpeg-turbo.i686 #N
yum -y install libXau.i686 #N #N
yum -y install libXdmcp.i686 #N
yum -y install libXpm.i686 #N
yum -y install libxml2.i686 #N
yum -y install gd.i686 #N
yum -y install libXmu.i686 #N
yum -y install motif.i686 #N
yum -y install libunwind.i686 #N
yum -y install mesa-libGLU.i686 #N
yum -y install libXaw.i686 libXi.i686 #N #N
yum -y install libcom_err.i686 keyutils-libs.i686 libverto.i686 #N #N #N
yum -y install krb5-libs.i686 #N
yum -y install openssl-libs.i686 #Y (by preceding)
yum -y install ncurses-libs.i686 #N
yum -y install pcre-devel.i686 #N
yum -y install freeglut #N
yum -y install freeglut.i686 #for /usr/lib/libglut.so.3 #N
yum -y install glib2.i686 #N
yum -y install compat-libtiff3.i686 #N

While that worked for me, who knows if it will work for you. Do "ldd yourbinary" to get a list of libraries you likely need.

I think your best bet would be to get a spare machine from somewhere, build Centos 7 on it, copy on the binaries you need to support, and then do something like the above to figure out which packages are needed. Then download those RPMS, put them on a USB key, and install them on the real target machine.

It could be that doing that violates some other company policy. You probably need to go over this with whoever has the final say, just to cover your butt.

Good luck.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to get install 32 bit libraries onto CentOS 7.5

Post by TrevorH » 2019/02/08 21:27:41

For information on how to go about setting up a local CentOS mirror please see https://wiki.centos.org/HowTos/CreateLocalMirror
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

harrywangca
Posts: 107
Joined: 2016/01/12 23:27:04
Location: Vista California

Re: How to get install 32 bit libraries onto CentOS 7.5

Post by harrywangca » 2019/02/20 20:00:24

Thank you TrevorH and Mathog for your help. Finally I got this work as followings:

I switch to used CentOS-7-x86_64-Everything.iso and write my kickstart file with --multilib. Both 64 and 32 bit libraries got installed in the system.
It worked!!

1. Download this 9G ISO and flash to a 16G USB drive and make it bootable
2. write my kickstart file with: %packages --multilib --ignoremissing

Thank you again.

Post Reply