Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nach GCC update: "error ...: libstdc++.so.5"
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Gominik
n00b
n00b


Joined: 23 Jun 2002
Posts: 39
Location: Germany

PostPosted: Sat Mar 01, 2003 8:24 pm    Post subject: Nach GCC update: "error ...: libstdc++.so.5" Reply with quote

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
View user's profile Send private message
ajordan
Guru
Guru


Joined: 10 Sep 2002
Posts: 320
Location: Hannover / Germany

PostPosted: Sun Mar 02, 2003 9:35 am    Post subject: Reply with quote

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
View user's profile Send private message
mikkk
Tux's lil' helper
Tux's lil' helper


Joined: 02 Mar 2003
Posts: 126

PostPosted: Sun Mar 02, 2003 10:59 am    Post subject: Reply with quote

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
View user's profile Send private message
ajordan
Guru
Guru


Joined: 10 Sep 2002
Posts: 320
Location: Hannover / Germany

PostPosted: Sun Mar 02, 2003 11:26 am    Post subject: Reply with quote

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
View user's profile Send private message
-BC-
n00b
n00b


Joined: 02 Mar 2003
Posts: 4

PostPosted: Sun Mar 02, 2003 5:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gominik
n00b
n00b


Joined: 23 Jun 2002
Posts: 39
Location: Germany

PostPosted: Sun Mar 02, 2003 9:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
-BC-
n00b
n00b


Joined: 02 Mar 2003
Posts: 4

PostPosted: Mon Mar 03, 2003 9:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Gominik
n00b
n00b


Joined: 23 Jun 2002
Posts: 39
Location: Germany

PostPosted: Tue Mar 04, 2003 1:13 pm    Post subject: Reply with quote

Danke für den Tipp, bei mir klappts auch. :D

Tschö
Gom
Back to top
View user's profile Send private message
ajordan
Guru
Guru


Joined: 10 Sep 2002
Posts: 320
Location: Hannover / Germany

PostPosted: Tue Mar 04, 2003 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
-BC-
n00b
n00b


Joined: 02 Mar 2003
Posts: 4

PostPosted: Tue Mar 04, 2003 7:18 pm    Post subject: Reply with quote

@ajordan: Diese Änderung hat aber nichts gebracht, keine Ahnung warum !
Back to top
View user's profile Send private message
ajordan
Guru
Guru


Joined: 10 Sep 2002
Posts: 320
Location: Hannover / Germany

PostPosted: Tue Mar 04, 2003 7:30 pm    Post subject: Reply with quote

Haste anschlieszend mal ldconfig ausgefuehrt?

Alex
_________________
http://spitfire.homelinux.net/
http://spitfire.spittix.de/

GNU/LinuX mobile Dokumentation
Back to top
View user's profile Send private message
-BC-
n00b
n00b


Joined: 02 Mar 2003
Posts: 4

PostPosted: Wed Mar 05, 2003 4:51 pm    Post subject: Reply with quote

Jupp, hatte ich !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum