Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libstdc++.so.6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
gbuseman
n00b
n00b


Joined: 06 Jun 2005
Posts: 5

PostPosted: Tue Jun 07, 2005 3:26 am    Post subject: libstdc++.so.6 Reply with quote

After a recent emerge --update world in which I didn't notice any errors, but apparently there was, I can no longer log onto gnome. I receive these errors at the login:

/etc/X11/gdm/PreSession/Default: Registering your session with wtmp and utmp /Defaults: running: /usr/bin/X11/sessreg -a -w /var/log/wtmp -x "/vat/gdm/:0.
Xservers" -h "" -l ".0" "georgb"

/etc/X11/gdm/Xsession: Beginning session setup
/etc/X11/gdm/Xsession: Setup done, will execute: /usr/bin/ssh-agent --gnome-session gnome-session: error while loading shared libraries: libstdc++.so.6:
cannot open shared object file: no such file or directory

I am not able to log in.

I have an alternate desktop which allows me to login, but all the applications I try to initiate get this error: Error while loading share libraries libstadc++.so.6
cannot open shared object file. No such file or directory.

I cannot run fix_libtool_files.sh as it also depends on the libstdc++ libs.

any recommendations?
Back to top
View user's profile Send private message
anfpunk
Apprentice
Apprentice


Joined: 29 May 2003
Posts: 275
Location: Columbus, Oh

PostPosted: Tue Jun 07, 2005 5:35 am    Post subject: Reply with quote

Can you emerge libstdc++-v3? That should fix it. If that doesn't then emerge gcc glibc libstdc++-v3 Emerging those 3 seems to fix damn near everything I ever have problems with.
Back to top
View user's profile Send private message
gbuseman
n00b
n00b


Joined: 06 Jun 2005
Posts: 5

PostPosted: Tue Jun 07, 2005 5:57 am    Post subject: libstdc++ Reply with quote

Unfortunately emerge relies on the lib, consequently I can't emerge.
Back to top
View user's profile Send private message
looshyan
n00b
n00b


Joined: 07 Jun 2005
Posts: 3

PostPosted: Tue Jun 07, 2005 6:07 am    Post subject: libstdc++.so.6 Reply with quote

I have the same problem (as far as I can judge, so I'll just post in this thread - hope that's ok)! I was able to run fix_libtool_files.sh, but that didn't solve the problem. I can't emerge anything either (and many programs just refuse to start without the libstdc++.so.6).

Hmm...any help would be appreciated. I wonder if we could download a gcc tgz package from somewhere and install the missing lib manually.

By the way, the update that caused the problem was gcc 3.4.3 to 3.4.4 (that was the last package I was able to emerge before emerge itself went nuts)


Last edited by looshyan on Tue Jun 07, 2005 6:15 am; edited 1 time in total
Back to top
View user's profile Send private message
jasperbg
n00b
n00b


Joined: 02 Mar 2005
Posts: 62
Location: Christchurch, New Zealand

PostPosted: Tue Jun 07, 2005 6:08 am    Post subject: Reply with quote

Boot from a LiveCD, chroot to your system and emerge from there.

By the way, this isn't really specific to Gnome so belongs in another forum.
Back to top
View user's profile Send private message
looshyan
n00b
n00b


Joined: 07 Jun 2005
Posts: 3

PostPosted: Tue Jun 07, 2005 6:22 am    Post subject: Reply with quote

Found a solution:

libstdc++.so.6 was missing in my /usr/lib, but it turned out to exist in /usr/lib/gcc/(whatever your CHOST is)/3.4.4/, so I just did:

ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /usr/lib/libstdc++.so.6

and now emerge is working again.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5690
Location: Removed by Neddy

PostPosted: Tue Jun 07, 2005 6:44 am    Post subject: Reply with quote

There are plenty of threads on this, the recomended approach is to edit the relevant file in /etc/env.d/#### to redirect it
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
looshyan
n00b
n00b


Joined: 07 Jun 2005
Posts: 3

PostPosted: Tue Jun 07, 2005 6:48 am    Post subject: Reply with quote

You're right, I should have searched better :oops:

Here's what fixed it for me:

https://forums.gentoo.org/viewtopic-t-345046.html
Back to top
View user's profile Send private message
gbuseman
n00b
n00b


Joined: 06 Jun 2005
Posts: 5

PostPosted: Tue Jun 07, 2005 7:00 am    Post subject: libstdc++ Reply with quote

The link worked. Thanks for the help.

As to being in the wrong arena. This was my first post to the forum. I appreciate all the assistance. Next time I will try to choose a better area.

Again, thanks to everyone that had a suggestion.

GCB
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Jun 07, 2005 10:02 am    Post subject: Reply with quote

looshyan wrote:
Here's what fixed it for me:

https://forums.gentoo.org/viewtopic-t-345046.html

Moved from Desktop Environments to Duplicate Threads.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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