Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]error while loading shared libraries: libstdc++.so.6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1642

PostPosted: Wed May 24, 2017 3:57 pm    Post subject: [SOLVED]error while loading shared libraries: libstdc++.so.6 Reply with quote

Hi Everyone

I tried to install a driver for brother dcp-115c (brscan2). It has debian and rpm drivers. I used the deb version. However, this destroyed my libstdc++.so.6 and emerge as well.

If i try to use eix <some package> It throws:
Code:
eix: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Code:

bash: emerge: command not found


However libstdc++ exists:
Code:

locate libstdc++.so.6
/usr/lib64/gcc/x86_64-pc-linux-gnu/5.4.0/libstdc++.so.6
/usr/lib64/gcc/x86_64-pc-linux-gnu/5.4.0/libstdc++.so.6.0.21
/usr/lib64/gcc/x86_64-pc-linux-gnu/5.4.0/32/libstdc++.so.6
/usr/lib64/gcc/x86_64-pc-linux-gnu/5.4.0/32/libstdc++.so.6.0.21
/usr/share/gdb/auto-load/usr/lib64/gcc/x86_64-pc-linux-gnu/5.4.0/libstdc++.so.6.0.21-gdb.py
/usr/share/gdb/auto-load/usr/lib64/gcc/x86_64-pc-linux-gnu/5.4.0/32/libstdc++.so.6.0.21-gdb.py


How can I solve the issue of libstdc++ and emerge?


Last edited by queen on Wed May 24, 2017 5:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1642

PostPosted: Wed May 24, 2017 5:10 pm    Post subject: Reply with quote

I managed to solve the problem. For anyone who encounters this problem it was a symlink that missed (the driver messes with it).

Code:
ln -s lib64 lib
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21624

PostPosted: Thu May 25, 2017 1:28 am    Post subject: Reply with quote

This is why you should never run custom installers directly as root. Wrap them in an ebuild so Portage can confine and track their writes.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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