View previous topic :: View next topic |
Author |
Message |
bit n00b
Joined: 23 Nov 2003 Posts: 34 Location: Dallas, TX
|
Posted: Mon Mar 21, 2005 2:30 am Post subject: Python Died, Help Please |
|
|
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 |
|
|
KsE Apprentice
Joined: 18 Mar 2003 Posts: 269 Location: St. Cloud, MN
|
Posted: Mon Mar 21, 2005 2:41 am Post subject: |
|
|
I believe libstdc++.so.5 is a part of gcc. So just "emerge gcc". That should fix it. |
|
Back to top |
|
|
bit n00b
Joined: 23 Nov 2003 Posts: 34 Location: Dallas, TX
|
Posted: Mon Mar 21, 2005 2:46 am Post subject: |
|
|
I cannot emerge anything because portage needs python |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
|
Back to top |
|
|
bit n00b
Joined: 23 Nov 2003 Posts: 34 Location: Dallas, TX
|
Posted: Mon Mar 21, 2005 3:16 am Post subject: |
|
|
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 |
|
|
KsE Apprentice
Joined: 18 Mar 2003 Posts: 269 Location: St. Cloud, MN
|
Posted: Mon Mar 21, 2005 4:06 am Post subject: |
|
|
Btw, if you are at the term for that computer, you can always use the livecd to fix things. Works nicely. |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Mon Mar 21, 2005 4:11 am Post subject: |
|
|
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 |
|
|
bit n00b
Joined: 23 Nov 2003 Posts: 34 Location: Dallas, TX
|
Posted: Mon Mar 21, 2005 4:44 am Post subject: |
|
|
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 |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Mon Mar 21, 2005 4:46 am Post subject: |
|
|
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 |
|
|
|