View previous topic :: View next topic |
Author |
Message |
Gominik n00b
Joined: 23 Jun 2002 Posts: 39 Location: Germany
|
Posted: Sat Mar 01, 2003 8:24 pm Post subject: Nach GCC update: "error ...: libstdc++.so.5" |
|
|
Ich habe per emerge -pu gcc GCC upgedatet. Jetzt läuft bei mir nicht mehr viel. Ich bekomme immer die Fehlermeldung:
python2.2: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
wobei python2.2 durch das entsprechende Programm zu ersetzen ist.
Die Datei ist bei mir hier:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libstdc++.so
[20:38:38] gomi@Hugo 3.2.2 > ll libstdc++.so.5
lrwxrwxrwx 1 root root 18 2003-02-28 21:34 libstdc++.so.5 -> libstdc++.so.5.0.2
Die Datei libstdc++.so.5.0.2 ist im gleichen Ordner vorhanden.
Ich hab schon rausgefunden, dass das ganze was mit LD_RUN_PATH und/oder LD_LIBRARY_PATH zu tun hat. Ich weiß aber nicht wie ich das wieder hinbiegen kann.
Kann mir da jemand helfen?
Tschö
Gom |
|
Back to top |
|
|
ajordan Guru
Joined: 10 Sep 2002 Posts: 320 Location: Hannover / Germany
|
Posted: Sun Mar 02, 2003 9:35 am Post subject: |
|
|
was steht in deiner /etc/ld.so.conf? Inhalt sollte auch sein Code: | /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2
| anschlieszend env-update ausfuehren.
Alex _________________ http://spitfire.homelinux.net/
http://spitfire.spittix.de/
GNU/LinuX mobile Dokumentation |
|
Back to top |
|
|
mikkk Tux's lil' helper
Joined: 02 Mar 2003 Posts: 126
|
Posted: Sun Mar 02, 2003 10:59 am Post subject: |
|
|
Hi,
Bei mir ist genau der selbe Fehler aufgetreten. Allerdings nicht bei einem upgrade sondern bei einer stage-1 Installation vom neuen 1.4_rc3 (natürlich auch beim bauen von gcc).
Könnte es sich hier um einen "echten" bug handeln?
mikkk |
|
Back to top |
|
|
ajordan Guru
Joined: 10 Sep 2002 Posts: 320 Location: Hannover / Germany
|
Posted: Sun Mar 02, 2003 11:26 am Post subject: |
|
|
Das kann ich ich momentan noch nciht beurteilen, ich habe den gcc-3.2.2 auch upgedatet und keine solchen Probleme gehabt. vermutlich gibt es Inkonsistenzen in der Auswertung der Konfigurationsdateien, wobei die Ursache schlicht auch in der Missachtung der einschlaegigen Dokumentation liegen kann.
Alex _________________ http://spitfire.homelinux.net/
http://spitfire.spittix.de/
GNU/LinuX mobile Dokumentation |
|
Back to top |
|
|
-BC- n00b
Joined: 02 Mar 2003 Posts: 4
|
Posted: Sun Mar 02, 2003 5:43 pm Post subject: |
|
|
Hab mich mal eben neu registriert weil genau dieser Fehler auch gerade bei mir aufgetreten ist ? Bin sonst eher der passive Leser :)
Der Fehler ist bei mir nach einem emerge -u system aufgetreten ! (mache ich jeden Monat einmal, bisher noch nie ein Prob damit gehabt)
Zum Glück hab ich gerade vorher noch mein System gesichert *schwitz*, es würde mich aber trotzdem interessieren ob das ein Bug ist ?! |
|
Back to top |
|
|
Gominik n00b
Joined: 23 Jun 2002 Posts: 39 Location: Germany
|
Posted: Sun Mar 02, 2003 9:37 pm Post subject: |
|
|
cat /etc/ld.so.conf
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1
/usr/lib/opengl/nvidia/lib
/usr/lib/mozilla
/usr/X11R6/lib
/opt/blackdown-jdk-1.3.1/jre/lib/i386/
/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads/
/usr/qt/3/lib
/usr/kde/3.1/lib
/usr/kde/3/lib
env-update geht nicht wegen:
python2.2: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Tschö
Gom |
|
Back to top |
|
|
-BC- n00b
Joined: 02 Mar 2003 Posts: 4
|
Posted: Mon Mar 03, 2003 9:29 am Post subject: |
|
|
Problem gelöst ! Danke an Vann im engl. Forum ...
First, cd /usr/lib/gcc-lib/i686-pc-linux-gnu/
Then rm -rf 3.1.1 (or move it if you don't want to delete it)
Then ln -s 3.2.2 3.1.1
Then ldconfig
Now, everything should work, however this solution isn't ideal. Next, edit /etc/env.d/05gcc (it might not be 05, but it's the env.d file for gcc) so that LDPATH says /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2
Then you can remove the symlink, and everything should be fine. |
|
Back to top |
|
|
Gominik n00b
Joined: 23 Jun 2002 Posts: 39 Location: Germany
|
Posted: Tue Mar 04, 2003 1:13 pm Post subject: |
|
|
Danke für den Tipp, bei mir klappts auch.
Tschö
Gom |
|
Back to top |
|
|
ajordan Guru
Joined: 10 Sep 2002 Posts: 320 Location: Hannover / Germany
|
Posted: Tue Mar 04, 2003 2:55 pm Post subject: |
|
|
Wie ich bereits weiter oben geschrieben habe, ist der "bessere" Weg die Zeile /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2 in /etc/ld.so.conf hinzuzufuegen. Auf diese Weise kann man auch mehere Bibliotheken parallel nutzen.
Alex _________________ http://spitfire.homelinux.net/
http://spitfire.spittix.de/
GNU/LinuX mobile Dokumentation |
|
Back to top |
|
|
-BC- n00b
Joined: 02 Mar 2003 Posts: 4
|
Posted: Tue Mar 04, 2003 7:18 pm Post subject: |
|
|
@ajordan: Diese Änderung hat aber nichts gebracht, keine Ahnung warum ! |
|
Back to top |
|
|
ajordan Guru
Joined: 10 Sep 2002 Posts: 320 Location: Hannover / Germany
|
|
Back to top |
|
|
-BC- n00b
Joined: 02 Mar 2003 Posts: 4
|
Posted: Wed Mar 05, 2003 4:51 pm Post subject: |
|
|
Jupp, hatte ich ! |
|
Back to top |
|
|
|