Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libstdc++.so.6: cannot open shared object file
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
FlyingPenguin
n00b
n00b


Joined: 24 Dec 2003
Posts: 12

PostPosted: Sun Jun 05, 2005 11:22 am    Post subject: libstdc++.so.6: cannot open shared object file Reply with quote

I have installed my Gentoo with this Documentation:
https://forums.gentoo.org/viewtopic-t-274968.html

Everything runs fine for month. Now I upgraded the gcc-package and e.g. emerge returns me the following Error:
Code:
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory


That's true, libstdc++.so.6 has gone. But how can I get this library back? Emerge is not possible. Any hints?

Thomas
Back to top
View user's profile Send private message
sveini
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2003
Posts: 80

PostPosted: Sun Jun 05, 2005 11:25 am    Post subject: Reply with quote

I got the same problem, updated gcc from 3.4.3-20050110 to gcc-3.4.4 and now I'm in looking for a solution :)

Solution: https://forums.gentoo.org/viewtopic-t-345046-highlight-libstdc.html
_________________
Magnus frater spectat te!
Back to top
View user's profile Send private message
dleifelohcs
Apprentice
Apprentice


Joined: 10 Jul 2003
Posts: 160
Location: UNH

PostPosted: Sun Jun 05, 2005 11:48 am    Post subject: Reply with quote

I believe I ran into the same problem...

Code:
magrathea ~ # gcc
/usr/bin/gcc-config: line 497: /etc/env.d/gcc/i686-pc-linux-gnu-3.3.5: No such file or directory
 * /usr/bin/gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/i686-pc-linux-gnu-3.3.5
/etc/env.d/gcc/i686-pc-linux-gnu-3.3.5 doesnt exist
gcc-config error: Could not run/locate "gcc"
magrathea ~ # emerge
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
magrathea ~ #


this was after: emerge -uD world (gcc 3.4) and then trying to emerge _anything_ afterwards.

(and the above fix doesn't work for me)


Last edited by dleifelohcs on Sun Jun 05, 2005 12:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1598
Location: U.S.A.

PostPosted: Sun Jun 05, 2005 12:00 pm    Post subject: Reply with quote

Depending on how it happened, you might have to try several things to get it working again.

I was getting the same error as original poster, most fix attempts weren't working. But investigating my
system env. seemed that it should have been working (ie. didn't find stuff missing). Did find the
solution here though:

https://forums.gentoo.org/viewtopic-t-336444-highlight-.html

Sometimes you will have to read carefully and try numerous things.
You can also look thru the forums for topics on /sbin/fix_libtool_files.sh
That didn't fix my problem, but has fixed others.

You might have to look thru emerge.log to see what your last gcc version was, hopefully you
have genlop installed and can look thru your emerge history/file versions.

Good luck.
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
FlyingPenguin
n00b
n00b


Joined: 24 Dec 2003
Posts: 12

PostPosted: Sun Jun 05, 2005 12:52 pm    Post subject: Reply with quote

I found a solution (may be):
add the following line to /etc/ld.so.conf
Code:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4

start ldconfig

that's it.
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 4:04 pm    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