View previous topic :: View next topic |
Author |
Message |
tnt Veteran
Joined: 27 Feb 2004 Posts: 1222
|
Posted: Wed Mar 16, 2005 6:04 pm Post subject: Problems after adding "multilib" keyword... |
|
|
I've added "multilib" keyword in my USE flags today. I thought that I'm using "mulitlib" all the time because once it was in default keywords, but today I've noticed that my gcc lacks that flag and I've added it manualy.
After that I've recompile gcc and got some strange errors at the end of installation:
Code: | /usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory |
Now nothing can be executed:
Code: | titan libstdc++-v3 # emerge --version
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory |
Nor env-update:
Code: | titan libstdc++-v3 # env-update
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory |
What to do?
_________________ gentoo user |
|
Back to top |
|
|
crazycat l33t
Joined: 26 Aug 2003 Posts: 838 Location: Hamburg, Germany
|
Posted: Wed Mar 16, 2005 6:19 pm Post subject: |
|
|
Get the stage1,2 or 3 andget the lib from there. U can then emerge libstdc++ later. |
|
Back to top |
|
|
tnt Veteran
Joined: 27 Feb 2004 Posts: 1222
|
Posted: Wed Mar 16, 2005 6:55 pm Post subject: |
|
|
I allready have:
Code: | /usr/lib/libstdc++-v3
/usr/lib/libstdc++-v3/libstdc++.so.5
/usr/lib/libstdc++-v3/libstdc++.so.5.0.5
/usr/lib/libstdc++-v3/libstdc++.so.5.0.6
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libstdc++.la
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libstdc++.so
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libstdc++.a
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6.0.3
/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/locale/de/LC_MESSAGES/libstdc++.mo
/usr/share/gcc-data/x86_64-pc-linux-gnu/3.4.3/locale/fr/LC_MESSAGES/libstdc++.mo |
but I don't know how to "tell" gentoo where to search for it... _________________ gentoo user |
|
Back to top |
|
|
herbie Guru
Joined: 09 Oct 2002 Posts: 319 Location: London UK
|
Posted: Wed Mar 16, 2005 7:12 pm Post subject: |
|
|
edit /etc/ld.so.conf and make sure that /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/ is listed, then run ldconfig. |
|
Back to top |
|
|
spielc Guru
Joined: 20 Apr 2004 Posts: 452
|
Posted: Wed Mar 16, 2005 7:35 pm Post subject: |
|
|
Another solution would be to emerge gcc with the sandbox turned off plus a emerge portage afterwards... this will result in a multilib enabled portage plus gcc... |
|
Back to top |
|
|
tnt Veteran
Joined: 27 Feb 2004 Posts: 1222
|
Posted: Wed Mar 16, 2005 8:29 pm Post subject: |
|
|
I've edited ld.co.conf and now it looks like this:
Code: |
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/lib
/usr/lib
/usr/local/lib
/lib32
/usr/lib32
/usr/local/lib32
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2/32
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/32
/lib32
/usr/lib32
/emul/linux/x86/lib
/emul/linux/x86/usr/lib
/usr/lib/libstdc++-v3/
|
done ldconfig, but nothing changed - still can't do anything...
Code: | titan root # emerge -pv gcc
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
|
Quote: | Another solution would be to emerge gcc with the sandbox turned off plus a emerge portage afterwards... this will result in a multilib enabled portage plus gcc... |
That's not the solution: I can't emerge anything - not even
_________________ gentoo user |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Wed Mar 16, 2005 8:37 pm Post subject: |
|
|
Please see this topic: https://forums.gentoo.org/viewtopic-t-309452.html (This problem is actually caused by a slight typo in the toolchain eclass, which meant that c++ language support wasn't being built, not a multilib problem.)
Moved from Gentoo on AMD64. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
|