Q: Why am I getting the following error when trying to emerge anything?
Code: Select all
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directoryYou can temporarily fix python in one of two ways:
- If you can find a binary package for your architecture of either gcc 3.3 or libstdc++-v3, you can untar them in the / directory. This will provide a working libstdc++.so.5, which should mean python and therefore portage works again. You should then emerge the binary package with a command like emerge -K '=sys-devel/gcc-3.3*' or emerge -K 'sys-libs/libstdc++-v3' so portage knows which files have been installed. You might be able to find suitable binaries here: http://dev.gentoo.org/~avenj/bins/.
- You might also be able to get it to work by temporarily linking libstdc++.so.5 to libstdc++.so.6. You can find the location of the missing library by running find /usr -iname 'libstdc++.so.?'. You can then change to this directory and create libstdc++.so.5 as a symbolic link to libstdc++.so.6 by running ln -s libstdc++.so.6 libstdc++.so.5. This link should be removed after you re-emerge python.
If need any more help with this, please post to this thread: [topic=344483]after gcc-3.4.3 emerge, emerge itself won't work anymore[/topic].
