View previous topic :: View next topic |
Author |
Message |
queen Veteran
Joined: 19 Jul 2005 Posts: 1642
|
Posted: Wed May 24, 2017 3:57 pm Post subject: [SOLVED]error while loading shared libraries: libstdc++.so.6 |
|
|
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 |
|
|
queen Veteran
Joined: 19 Jul 2005 Posts: 1642
|
Posted: Wed May 24, 2017 5:10 pm Post subject: |
|
|
I managed to solve the problem. For anyone who encounters this problem it was a symlink that missed (the driver messes with it).
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21624
|
Posted: Thu May 25, 2017 1:28 am Post subject: |
|
|
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 |
|
|
|