Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error: /usr/bin/python: error while loading shared libraries
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
FnkDrSpok
n00b
n00b


Joined: 02 Oct 2004
Posts: 35
Location: Virginia

PostPosted: Sun Jun 05, 2005 3:23 am    Post subject: Error: /usr/bin/python: error while loading shared libraries Reply with quote

Has anyone seen this error recently:
Code:
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

I was doing an emerge world when it crapped out in the middle of this and now the box is unusable for the most part.

I"ve been all around these forums and I've found this POSTING that closely talks about my error but here is the problem, that was so long ago but I'm assuming that there has been many revisions since then. I've tried all the side links and tricks and step by steps to fix this problem but no haps. I've installed a total of 6 gentoo boxes and 4 out of the six are still running today with no problem but I've never encountered this problem.

I can't emerge, I can't man, I can't env-update. I'm assuming something is wrong with GCC but I can't even emerge that or anything similar to troubleshoot it.

Can someone please help me, I need to get this server online by monday so I can have my other website up and running.
_________________
Merging into Gentoo from Red Hat ES and Solaris.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Jun 05, 2005 3:29 am    Post subject: Reply with quote

Hi.

Post the last 10 to 15 lines before the error and post the output from
Code:
emerge --info
Back to top
View user's profile Send private message
FnkDrSpok
n00b
n00b


Joined: 02 Oct 2004
Posts: 35
Location: Virginia

PostPosted: Sun Jun 05, 2005 3:53 am    Post subject: Reply with quote

I was also thinking, am I using a USE flag wrong? Can someone post an example of their /etc/make.conf file to let me know if I'm using something wrong or whatever. This is the last message before the emerge -uU world errored out:

Code:
running configure fragment for add-on libidn
checking sysdep dirs... sysdeps/i386/elf linuxthreads/sysdeps/unix/sysv/linux/i386 linuxthreads/sysdeps/unix/sysv/linux linuxthreads/sysdeps/pthread sysdeps/pthread linuxthreads/sysdeps/unix/sysv linuxthreads/sysdeps/unix linuxthreads/sysdeps/i386/i686 linuxthreads/sysdeps/i386 libidn/sysdeps/unix sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

!!! ERROR: sys-libs/glibc-2.3.4.20041102-r1 failed.
!!! Function glibc_do_configure, Line 706, Exitcode 1
!!! failed to configure glibc
!!! If you need support, post the topmost build error, NOT this status message.


Any help here would be appreciated.
_________________
Merging into Gentoo from Red Hat ES and Solaris.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Jun 05, 2005 4:04 am    Post subject: Reply with quote

You need to post the output of
Code:
emerge --info

Also, you should check the bugzilla database https://bugs.gentoo.org for known bugs. I've found the following links:
https://bugs.gentoo.org/show_bug.cgi?id=95050
https://bugs.gentoo.org/show_bug.cgi?id=94959

Hope this helps.
Back to top
View user's profile Send private message
FnkDrSpok
n00b
n00b


Joined: 02 Oct 2004
Posts: 35
Location: Virginia

PostPosted: Sun Jun 05, 2005 4:08 am    Post subject: Reply with quote

Here is what I get when I emerge --info

Code:
# emerge --info
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory


Am I supposed to be giving you the portage log info, is that what you mean?
_________________
Merging into Gentoo from Red Hat ES and Solaris.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Jun 05, 2005 4:21 am    Post subject: Reply with quote

Not quite. I should have guessed that you would be unable to give that, though. :-(
In that case, post the output of
Code:
cat /etc/make.conf

and tell us if this is a new system or an updated system and what was the original installation media.
Back to top
View user's profile Send private message
metalus
n00b
n00b


Joined: 09 May 2004
Posts: 52

PostPosted: Sun Jun 05, 2005 4:26 am    Post subject: Possible solution Reply with quote

I got this error too, and I was just doing a plain stage3 install from the 2005.1 universal CD. I could not emerge anymore. I am posting here a solution that worked for me. Thanks to moreon on the gentoo IRC channel.

Be aware that this solution is almost the same as the one posted on http://mzz.mine.nu/faq/python%20libstdc++?__session_just_started__=1
except there are more files to change in the solution posted here.

So to fix the python shared library problem, you need to change paths in some configuration files.

First find where the missing library is (in my case the missing lib is the so.5):
Code:
 find /usr/lib/ -name "libstdc++.so.5"


The find command will return some path: write it down (ahem... cut it in your mouse buffer)

Then edit the following files and change ALL the paths they contain to the path returned by the find command (this is where the url posted above differs, there are more files here):
Code:

nano  /etc/ld.so.conf
nano /etc/env.d/05gcc
nano /etc/env.d/gcc/config


Now type the following commands:
Code:

/sbin/ldconfig
gcc-config -l


gcc-config -l should return without errors. You probably want the first profile, but you can pick the one for your need. Now type:
Code:
gcc-config <pick the number of the profile you want>


Then do:
Code:

env-update
source /etc/profile


Your python should work: just type "python" and if you get to the ">>>" prompt, it works. Now Ctrl-D out of python and continue whatever you were doing.
Back to top
View user's profile Send private message
FnkDrSpok
n00b
n00b


Joined: 02 Oct 2004
Posts: 35
Location: Virginia

PostPosted: Sun Jun 05, 2005 5:41 am    Post subject: Reply with quote

Sorry I didn't respond right away, I just left work and my server is at work on a private vlan. So I'll just wait till tomorrow to run those commands and see if that fixes my problem. Thanks for all the feedback.
_________________
Merging into Gentoo from Red Hat ES and Solaris.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sun Jun 05, 2005 7:59 am    Post subject: Reply with quote

Please see: https://forums.gentoo.org/viewtopic-t-345046.html

Moved from Installing Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum