Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python Died, Help Please
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
bit
n00b
n00b


Joined: 23 Nov 2003
Posts: 34
Location: Dallas, TX

PostPosted: Mon Mar 21, 2005 2:30 am    Post subject: Python Died, Help Please Reply with quote

I just installed this machine for a test server recently, now python cannot load, near as I can figure this error began after an emerge world

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

where do I start:oops:
Back to top
View user's profile Send private message
KsE
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 269
Location: St. Cloud, MN

PostPosted: Mon Mar 21, 2005 2:41 am    Post subject: Reply with quote

I believe libstdc++.so.5 is a part of gcc. So just "emerge gcc". That should fix it.
Back to top
View user's profile Send private message
bit
n00b
n00b


Joined: 23 Nov 2003
Posts: 34
Location: Dallas, TX

PostPosted: Mon Mar 21, 2005 2:46 am    Post subject: Reply with quote

I cannot emerge anything because portage needs python
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Mar 21, 2005 2:52 am    Post subject: Reply with quote

bit wrote:
I cannot emerge anything because portage needs python
Read this Bug #85490 comment #7 and/or Bug #85490 comment #38
Back to top
View user's profile Send private message
bit
n00b
n00b


Joined: 23 Nov 2003
Posts: 34
Location: Dallas, TX

PostPosted: Mon Mar 21, 2005 3:16 am    Post subject: Reply with quote

ok
http://dev.gentoo.org/~avenj/bins/
has for i586, i686 & amd64 but my gcc-lib path says
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/

but I also have these settings, I did not change them, the system is probably based off of a stage3-i686
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"

so should I use the i686/gcc-3.3.3.tbz2 ?
my gcc is 3.3.5 though ...
:?
Back to top
View user's profile Send private message
KsE
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 269
Location: St. Cloud, MN

PostPosted: Mon Mar 21, 2005 4:06 am    Post subject: Reply with quote

Btw, if you are at the term for that computer, you can always use the livecd to fix things. Works nicely.
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Mar 21, 2005 4:11 am    Post subject: Reply with quote

bit wrote:
ok
http://dev.gentoo.org/~avenj/bins/
has for i586, i686 & amd64 but my gcc-lib path says
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5/

but I also have these settings, I did not change them, the system is probably based off of a stage3-i686
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"

so should I use the i686/gcc-3.3.3.tbz2 ?
my gcc is 3.3.5 though ...
:?


use http://dev.gentoo.org/~avenj/bins/i686/gcc-3.3.4-r1.tbz2

then use gcc-config to switch to that new profile and then emerge again gcc and things should be okay.

if this does not work, then manualy rename the 3.3.4 to 3.3.5 (uhh... i don't know if this is realy okay to advice you that)

or edit manualy /etc/ld.so.conf and add the 3.3.4 path into it and then do a "ldconfig && source /etc/profile" and then emerge again the 3.3.5 ebuild.


cheers

SteveB
Back to top
View user's profile Send private message
bit
n00b
n00b


Joined: 23 Nov 2003
Posts: 34
Location: Dallas, TX

PostPosted: Mon Mar 21, 2005 4:44 am    Post subject: Reply with quote

thanks alot, I did

wget http://dev.gentoo.org/~avenj/bins/i686/gcc-3.3.4-r1.tbz2
tar xpjf gcc-3.3.4-r1.tbz2 -C /
ln -s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc_s.so.1 /usr/lib/libgcc_s.so.1
ln -s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.so.5 /usr/lib/libstdc++.so.5

and portage was able to run, next step is emerge sync, emerge gcc
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Mar 21, 2005 4:46 am    Post subject: Reply with quote

bit wrote:
thanks alot, I did

wget http://dev.gentoo.org/~avenj/bins/i686/gcc-3.3.4-r1.tbz2
tar xpjf gcc-3.3.4-r1.tbz2 -C /
ln -s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc_s.so.1 /usr/lib/libgcc_s.so.1
ln -s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.so.5 /usr/lib/libstdc++.so.5

and portage was able to run, next step is emerge sync, emerge gcc
GREAT
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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