Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED]error while loading shared libraries: libstdc++.so.6

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
queen
Veteran
Veteran
User avatar
Posts: 1642
Joined: Tue Jul 19, 2005 10:34 am

[SOLVED]error while loading shared libraries: libstdc++.so.6

  • Quote

Post by queen » Wed May 24, 2017 3:57 pm

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: Select all

eix: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Code: Select all

bash: emerge: command not found
However libstdc++ exists:

Code: Select all

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.
Top
queen
Veteran
Veteran
User avatar
Posts: 1642
Joined: Tue Jul 19, 2005 10:34 am

  • Quote

Post by queen » Wed May 24, 2017 5:10 pm

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

Code: Select all

ln -s lib64 lib
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu May 25, 2017 1:28 am

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.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic