[gentoo-user] Re: emerge broken - libstdc++.so.5
On 6/5/06, Mark Knecht [EMAIL PROTECTED] wrote: Hi, I've been working through some updates on my wife's machine and now it appears emerge itself has been broken: dragonfly ~ # emerge -pv bash /usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory dragonfly ~ # gcc and glibc updates were part of what was going on. I have some other Gentoo machines here at home if I need to copy something. How can I recover? First time in 3-4 years of running Gentoo that anything like this has happened! Thanks, Mark Like many things in life this pain seems to be somewhat self inflicted, I suppose. More into. After emerging gcc-3.4.6 I had troubles with the gcc-config stuff so I removed gcc-3.3.6. However it appears that removing 3.3.6 removed libstdc++ also. I updated slocate's database and saw that the only libraries with that name are gone now: dragonfly ~ # slocate libstdc++.so.5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5.0.7 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5 dragonfly ~ # updatedb dragonfly ~ # slocate libstdc++.so.5 dragonfly ~ # More info: dragonfly ~ # gcc-config -l [1] i686-pc-linux-gnu-3.4.6 * [2] i686-pc-linux-gnu-3.4.6-hardened [3] i686-pc-linux-gnu-3.4.6-hardenednopie [4] i686-pc-linux-gnu-3.4.6-hardenednopiessp [5] i686-pc-linux-gnu-3.4.6-hardenednossp dragonfly ~ # gcc-config -B /usr/i686-pc-linux-gnu/gcc-bin/3.4.6 dragonfly ~ # gcc-config -B -L /usr/i686-pc-linux-gnu/gcc-bin/3.4.6 dragonfly ~ # gcc-config -L /usr/lib/gcc/i686-pc-linux-gnu/3.4.6 dragonfly ~ # gcc-config -X /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3 dragonfly ~ # gcc-config -E export PATH=/usr/i686-pc-linux-gnu/gcc-bin/3.4.6:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.6:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin:/opt/firebird/bin dragonfly ~ # It seems that my AMD64 machine has a number of these: [EMAIL PROTECTED] ~ $ slocate libstdc++.so.5 /mnt/gentoo32/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5.0.7 /mnt/gentoo32/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5 /mnt/gentoo32/usr/lib/libstdc++-v3/libstdc++.so.5.0.6 /mnt/gentoo32/usr/lib/libstdc++-v3/libstdc++.so.5 /usr/lib64/libstdc++-v3/libstdc++.so.5.0.6 /usr/lib64/libstdc++-v3/libstdc++.so.5 /emul/linux/x86/usr/lib/libstdc++.so.5.0.5 /emul/linux/x86/usr/lib/libstdc++.so.5 [EMAIL PROTECTED] ~ $ - Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: emerge broken - libstdc++.so.5
Like many things in life this pain seems to be somewhat self inflicted, I suppose. More into. After emerging gcc-3.4.6 I had troubles with the gcc-config stuff so I removed gcc-3.3.6. However it appears that removing 3.3.6 removed libstdc++ also. I updated slocate's database and saw that the only libraries with that name are gone now: the solution to your problem is here: http://gentoo-wiki.com/HOWTO_Recover_from_%22emerge_--unmerge_gcc%22 and you can add yourself to the wall of shame too ;) -Leszek -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: emerge broken - libstdc++.so.5
On 6/5/06, leszek [EMAIL PROTECTED] wrote: Like many things in life this pain seems to be somewhat self inflicted, I suppose. More into. After emerging gcc-3.4.6 I had troubles with the gcc-config stuff so I removed gcc-3.3.6. However it appears that removing 3.3.6 removed libstdc++ also. I updated slocate's database and saw that the only libraries with that name are gone now: the solution to your problem is here: http://gentoo-wiki.com/HOWTO_Recover_from_%22emerge_--unmerge_gcc%22 and you can add yourself to the wall of shame too ;) -Leszek Hi, For a few moments I thought this might be the problem, and I though I might end up on the Wall of Shame (tm) but in fact this doesn't solve my problem since it doesn't install libstdc++.so.5 dragonfly ~ # gcc-config -l [1] i686-pc-linux-gnu-3.4.4 * [2] i686-pc-linux-gnu-3.4.4-hardened [3] i686-pc-linux-gnu-3.4.4-hardenednopie [4] i686-pc-linux-gnu-3.4.4-hardenednopiessp [5] i686-pc-linux-gnu-3.4.4-hardenednossp [6] i686-pc-linux-gnu-3.4.6 [7] i686-pc-linux-gnu-3.4.6-hardened [8] i686-pc-linux-gnu-3.4.6-hardenednopie [9] i686-pc-linux-gnu-3.4.6-hardenednopiessp [10] i686-pc-linux-gnu-3.4.6-hardenednossp dragonfly ~ # source /etc/profile dragonfly ~ # updatedb dragonfly ~ # slocate libstdc++.so.5 dragonfly ~ # dragonfly ~ # eix libstd eix: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory dragonfly ~ # Do I need to do the same tar install of libstdc++ from the website listed in the Gentoo Wiki you pointed me at? On my AMD64 machine I can see where this comes from: lightning ~ # equery belongs /usr/lib64/libstdc++-v3/libstdc++.so.5 [ Searching for file(s) /usr/lib64/libstdc++-v3/libstdc++.so.5 in *... ] sys-libs/libstdc++-v3-3.3.4 (/usr/lib64/libstdc++-v3/libstdc++.so.5 - libstdc++.so.5.0.6) lightning ~ # But python won't run any of this stuff on this machine since it cannot get this library. What am I not understanding? Seems like maybe I need to go back to an install CD and get something but not sure what. Thanks, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: emerge broken - libstdc++.so.5
On 6/5/06, Mark Knecht [EMAIL PROTECTED] wrote: On 6/5/06, leszek [EMAIL PROTECTED] wrote: Like many things in life this pain seems to be somewhat self inflicted, I suppose. More into. After emerging gcc-3.4.6 I had troubles with the gcc-config stuff so I removed gcc-3.3.6. However it appears that removing 3.3.6 removed libstdc++ also. I updated slocate's database and saw that the only libraries with that name are gone now: the solution to your problem is here: http://gentoo-wiki.com/HOWTO_Recover_from_%22emerge_--unmerge_gcc%22 and you can add yourself to the wall of shame too ;) I found a friend? Hi, For a few moments I thought this might be the problem, and I though I might end up on the Wall of Shame (tm) but in fact this doesn't solve my problem since it doesn't install libstdc++.so.5 dragonfly ~ # gcc-config -l [1] i686-pc-linux-gnu-3.4.4 * [2] i686-pc-linux-gnu-3.4.4-hardened [3] i686-pc-linux-gnu-3.4.4-hardenednopie [4] i686-pc-linux-gnu-3.4.4-hardenednopiessp [5] i686-pc-linux-gnu-3.4.4-hardenednossp [6] i686-pc-linux-gnu-3.4.6 [7] i686-pc-linux-gnu-3.4.6-hardened [8] i686-pc-linux-gnu-3.4.6-hardenednopie [9] i686-pc-linux-gnu-3.4.6-hardenednopiessp [10] i686-pc-linux-gnu-3.4.6-hardenednossp dragonfly ~ # source /etc/profile dragonfly ~ # updatedb dragonfly ~ # slocate libstdc++.so.5 dragonfly ~ # dragonfly ~ # eix libstd eix: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory dragonfly ~ # Do I need to do the same tar install of libstdc++ from the website listed in the Gentoo Wiki you pointed me at? On my AMD64 machine I can see where this comes from: lightning ~ # equery belongs /usr/lib64/libstdc++-v3/libstdc++.so.5 [ Searching for file(s) /usr/lib64/libstdc++-v3/libstdc++.so.5 in *... ] sys-libs/libstdc++-v3-3.3.4 (/usr/lib64/libstdc++-v3/libstdc++.so.5 - libstdc++.so.5.0.6) lightning ~ # But python won't run any of this stuff on this machine since it cannot get this library. What am I not understanding? Seems like maybe I need to go back to an install CD and get something but not sure what. On 5/31/06, Rumen Yotov [EMAIL PROTECTED] wrote: Hi, I keep binaries for all major/critical packages of my system - gcc,glibc But their usage depends on processor family, USE flags for gcc etc. Will put a binary tarball of gcc-3.4.6-r1 (gcc-3.4.6-r1.tbz2)-25MB. CFLAGS=-O2 -march=athlon-xp -pipe -fomit-frame-pointer sys-devel/gcc-3.4.6-r1 USE=boundschecking fortran gcj gtk nls objc -bootstrap -build -doc -hardened -ip28 -multislot -nocxx -nopie -nossp -vanilla Place: ftp.qrypto.org PS: to install put it in / (root dir), tar xjvf gcc-3.4.6-r1.tbz2 (ignore last massages). Then if lucky remerge any GCC you want. HTH.Rumen That's the file you need in order to save yourself. Then follow the instructions on http://gentoo-wiki.com/HOWTO_Recover_from_%22emerge_--unmerge_gcc%22 -- == GCv3.12 == GCS d-(++) s+: a? C++ UL+ P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: emerge broken - libstdc++.so.5
On 6/5/06, Mark Knecht [EMAIL PROTECTED] wrote: Hi, For a few moments I thought this might be the problem, and I though I might end up on the Wall of Shame (tm) but in fact this doesn't solve my problem since it doesn't install libstdc++.so.5 dragonfly ~ # gcc-config -l [1] i686-pc-linux-gnu-3.4.4 * [2] i686-pc-linux-gnu-3.4.4-hardened [3] i686-pc-linux-gnu-3.4.4-hardenednopie [4] i686-pc-linux-gnu-3.4.4-hardenednopiessp [5] i686-pc-linux-gnu-3.4.4-hardenednossp [6] i686-pc-linux-gnu-3.4.6 [7] i686-pc-linux-gnu-3.4.6-hardened [8] i686-pc-linux-gnu-3.4.6-hardenednopie [9] i686-pc-linux-gnu-3.4.6-hardenednopiessp [10] i686-pc-linux-gnu-3.4.6-hardenednossp dragonfly ~ # source /etc/profile dragonfly ~ # updatedb dragonfly ~ # slocate libstdc++.so.5 dragonfly ~ # dragonfly ~ # eix libstd eix: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory dragonfly ~ # That's because the tarball pointed to from that page is for 3.4.x, which contains libstdc++.so.6 - libstdc++.so.5 is the shared library from gcc 3.3.x, which is not binary compatible with libstdc++.so.6 - hence, to recover using the method described on that Wiki page, you need to find a 3.3.x tarball. Does anyone have one already that they can offer? If not, let me know your -march and etc., and I will see if I can compile/upload one for you. -James -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: emerge broken - libstdc++.so.5
dragonfly ~ # eix libstd eix: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory dragonfly ~ # That's because the tarball pointed to from that page is for 3.4.x, which contains libstdc++.so.6 - libstdc++.so.5 is the shared library from gcc 3.3.x, which is not binary compatible with libstdc++.so.6 - hence, to recover using the method described on that Wiki page, you need to find a 3.3.x tarball. Does anyone have one already that they can offer? If not, let me know your -march and etc., and I will see if I can compile/upload one for you. -James Thanks James. The required tarball is on the above referenced page. I'm downloading it now. - Mark And it's all fixed now. Cheers, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: emerge broken - libstdc++.so.5
You guys !! The only way to understand and learn is TO BREAK IT sometime xD. Bye !! ;) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Re: emerge broken - libstdc++.so.5
On 6/5/06, Rafael Fernández López [EMAIL PROTECTED] wrote: You guys !! The only way to understand and learn is TO BREAK IT sometime xD. I wanna say that about half my knowledge I get from fixing things that have gone wrong... okay, things that have gone wrong because of a misintended command from me. So, do I get a friend on the wall of shame? Or are we in denial? ; ) Great to hear you got it working. -- == GCv3.12 == GCS d-(++) s+: a? C++ UL+ P+ L++ E--- W+(+++) N++ o? K? w--- O? M+ V? PS- PE+ Y-(--) PGP- t+++ 5? X R tv-- b+ DI+++ D+ G e* h- !r !y = END GCv3.12 -- gentoo-user@gentoo.org mailing list