Howto install 32-bit libraries on 64-bit Linux using yum
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Howto install 32-bit libraries on 64-bit Linux using yum
I am using CentOS 64-bit (version 4.3) and am running into problems where 32-bit libraries are not installed. I have encountered problems with VMWare and needed to install the 32-bit libraries for X11 using the following command:
Code:
yum install xorg-X11-libs.i386
Now, I am having a problem with a proprietary server that was built as a 32-bit application as it can't find libstdc++.so.6. I tried the following command:
Code:
yum install compat-libstdc++-33
but I still get the same error when I try to run our application:
Code:
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Does anyone know how to find out what yum package to install to get the 32-bit version of libstdc++?
Also, can anyone tell me how to find the package to install for a generic library that is missing? I am anticipating that this problem will come up again so I'd like to learn how to determine which package to install if possible.
Click here to see the post LQ members have rated as the most helpful post in this thread.
I'm going to dig up an old thread... I was installing Ventrilo server on Fedora 15 64 bit and realized i couldn't install it due to missing libraries. I seen the file that was missing and I found it exactly by using the whatprovides command. That was amazing.. Anyways much thanks!
I always use provides rather than whatprovides, because that is what I learned first and because I don't type very well. Maybe whatprovides is more intuitive, so easier to remember.
Quote:
Originally Posted by djgerbavore
The whatprovides should be more documented. I never heard of this until today. This might be yum's must kept secret.
Unlike many important Linux tools, yum has a very beginner friendly man page. (what)provides is documented there both clearly and early (important for beginner friendly). In other tools some important beginner feature first mentioned on line 4000 of the man page "should be more documented". But that comment is unfair for whatprovides.
Nevertheless, for those too scared of man pages, I'm glad this thread exists.
For Debian based distributions, the corresponding apt functionality seems to be both not installed by default and harder to find in the documentation. I usually give up and instead go to packages.ubuntu.com and scroll down to Search the contents of packages. Odds are the package which contains fileX in Ubuntu is the same as the package which contains fileX in some other Debian based distribution, so that is an easy place to get the answer, especially if you're looking for the answer at a moment in which you can't run apt (such as while I'm on the Windows computer I'm using right now).
For some major Red Hat based distribution, if someone happens to knows of a similar (public web accessible) substitute for yum provides that would be a nice URL to have posted in this thread.
Dag Weirs' site http(colon)(slash)(slash)dag.wieers.com/rpm/ is an excellent source for RPM's for older Red Hats. Click on the Installation and Configuration link and look up your release and arch. for most there is a choice of yum or apt repositories.
cheers.
My apologies, but I've tried and tried all of these suggestions and still cannot get a 32 bit version of libc.so to install on my 64 bit HR6 system. No matter what I install when I check /lib/libc.so - it is still 32 bit and the program which is dependent on it refuses to run.
Please, respond with details on how to download such a file. BTW, I can't find local.conf anywhere - I did a find / -name local.conf.
I also don't know how to change or add repositories - so if this requires some other repository - please indicate how to change or add the repository.
I am trying to install SAS and getting this error message: "jre/bin/java: error while loading shared libraries: libc.so.6: wrong ELF class: ELFCLASS64".
As I understand it /lib/libc.so should be 32 bit and /lib64/libc.so 64 bit. Or, at least, if it were then I could install SAS - which, appearantly, expects to find a 32 bit libc.so.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.