Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
11-27-2006, 05:31 PM
|
#1
|
LQ Newbie
Registered: Feb 2004
Posts: 13
Rep:
|
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.
|
11-27-2006, 05:38 PM
|
#2
|
LQ Newbie
Registered: Feb 2004
Posts: 13
Original Poster
Rep:
|
I found the command searching through some other forums. The following command will install the 32-bit versions of libstdc++:
Code:
yum install libstdc++.i386
Can anybody provide any information on how to do this in the generic case? I.E. if I encounter another missing library?
|
|
1 members found this post helpful.
|
02-23-2009, 03:03 PM
|
#3
|
Member
Registered: Aug 2007
Posts: 67
Rep:
|
I realise this is an ancient thread, but it could be useful to someone...
if you have a missing library - for example:
do;
Code:
>yum whatprovides libstdc++.so.5
compat-libstdc++-33.i386 3.2.3-61 fedora
then you can do;
Code:
yum install compat-libstdc++-33.i386
and your missing library will be installed.
|
|
3 members found this post helpful.
|
06-10-2011, 07:52 PM
|
#4
|
LQ Newbie
Registered: Jun 2011
Location: Minneapolis
Distribution: Fedora/Red Hat
Posts: 1
Rep:
|
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!
|
|
|
02-11-2012, 10:01 AM
|
#5
|
Member
Registered: Jun 2004
Location: PA
Distribution: Fedora (latest git kernel)
Posts: 458
Rep:
|
I know this thread is old, but this saved me a lot of time. Thanks. I hope other people fun this useful.
Code:
yum whatprovides <libname>
The whatprovides should be more documented. I never heard of this until today. This might be yum's must kept secret.
Thanks,
|
|
|
02-11-2012, 10:22 AM
|
#6
|
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286
|
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.
Last edited by johnsfine; 02-11-2012 at 10:35 AM.
|
|
|
03-01-2012, 07:52 PM
|
#7
|
LQ Newbie
Registered: Sep 2005
Posts: 1
Rep:
|
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.
|
|
|
06-26-2012, 03:50 PM
|
#8
|
LQ Newbie
Registered: Jun 2012
Posts: 18
Rep:
|
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.
Thanks in advance!
Roger
|
|
|
06-26-2012, 03:58 PM
|
#9
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Post # 8, @rogerp : Welcome to LQ.
If it's RHEL 6 : The package name is "glibc.i686"
# yum install glibc.i686
|
|
|
06-26-2012, 05:19 PM
|
#10
|
LQ Newbie
Registered: Jun 2012
Posts: 18
Rep:
|
thanks, but ...
I appreciate your quick response and I tried it, with no success. I still don't have a 32 bit libc.so.
Here is what happened:
[root@heather sarah]# yum install glibc.i686
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Package glibc-2.12-1.47.0.2.el6_2.12.i686 already installed and latest version
Nothing to do
[root@heather sarah]#
[root@heather sarah]# file /lib/libc.so
/lib/libc.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, not stripped
[root@heather sarah]#
|
|
|
06-26-2012, 06:16 PM
|
#11
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,639
|
Quote:
he whatprovides should be more documented.
|
it is
see:
and the output of the yum error
i am betting it stated to use "*/" in the search
are you trying to build software ?
if so you have to install the matching -devel package
see:
Last edited by John VV; 06-26-2012 at 06:21 PM.
|
|
|
06-27-2012, 07:40 AM
|
#12
|
LQ Newbie
Registered: Jun 2012
Posts: 18
Rep:
|
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.
So, how can I put a 32 bit libc.so in /lib?
Roger
|
|
|
06-27-2012, 08:42 AM
|
#13
|
LQ Guru
Registered: Dec 2007
Distribution: Centos
Posts: 5,286
|
You should not have a 64 bit libc.so in /lib in X86_64 RHEL. But you already know that.
I don't have any guess at how things got the way they are in your system, so I have no idea what corrective actions would be safe/effective.
Are the contents of /lib generally wrong? Or just that file?
Is libc.so in /lib64 the same file or different or missing or what?
|
|
|
06-27-2012, 10:43 AM
|
#14
|
LQ Newbie
Registered: Jun 2012
Posts: 18
Rep:
|
OK, somehow only libc.so got replaced - possibly when I was building the GCC compiler.
The /lib64/libc.so looks to be the same file as the /lib/libc.so.
So - how can I get this 32 bit libc.so file? Should not be too hard - right?
Roger
|
|
|
06-27-2012, 11:27 AM
|
#15
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
# 14
CentOS 6.x
# yum reinstall glibc.i686 glibc-devel.i686
CentOS 4.x, 5.x
# yum reinstall glibc.i386 glibc-devel.i386
.
Last edited by knudfl; 06-27-2012 at 11:35 AM.
|
|
|
All times are GMT -5. The time now is 09:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|