Forums

Skip to content

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

error while loading shared libraries

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
igoldtho
n00b
n00b
Posts: 22
Joined: Sun Apr 20, 2003 1:37 am

error while loading shared libraries

  • Quote

Post by igoldtho » Sun Apr 20, 2003 1:56 am

I had a power outage while installing a package and now when I run emerge sync (or emerge with any argument) I get this error.

/usr/bin/python2.2: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

I get similar errors with startx and env-update (diferent libraries).

It seems that the problem should be a fairly simple one. I have checked that file "libstdc++.so.5" exists and is in the PATH - this is the limit of my expertise in such matters. Any help to avoid reinstalling will be appreciated.
Top
dwerg
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 101
Joined: Mon Sep 30, 2002 7:23 am
Location: Amsterdam, the Netherlands
Contact:
Contact dwerg
Website

  • Quote

Post by dwerg » Sun Apr 20, 2003 2:15 am

Have you tried /sbin/ldconfig (as root)?
Top
igoldtho
n00b
n00b
Posts: 22
Joined: Sun Apr 20, 2003 1:37 am

  • Quote

Post by igoldtho » Sun Apr 20, 2003 3:11 am

excellent! ldconfig seems to have rectified most of the problems (thank you!), however it generated the following errors when I ran it.

gentoo root # ldconfig
ldconfig: /usr/lib/libgconf-1.so.1.0.3 is not an ELF file - it has the wrong
magic bytes at the start.

ldconfig: /usr/lib/libgconf-1.so is not an ELF file - it has the wrong magic
bytes at the start.

ldconfig: /usr/lib/libgconf-1.so.1 is not an ELF file - it has the wrong magic
bytes at the start.

ldconfig: /usr/lib/libgconf-gtk-1.so is not an ELF file - it has the wrong
magic bytes at the start.

ldconfig: /usr/lib/libgconf-gtk-1.so.1 is not an ELF file - it has the wrong
magic bytes at the start.

ldconfig: /usr/lib/libgconf-gtk-1.so.1.0.0 is not an ELF file - it has the
wrong magic bytes at the start.

I am wondering whether Gentoo has a mechanism for verifying or reinstalling installed packages?
Top
dwerg
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 101
Joined: Mon Sep 30, 2002 7:23 am
Location: Amsterdam, the Netherlands
Contact:
Contact dwerg
Website

  • Quote

Post by dwerg » Sun Apr 20, 2003 9:29 am

No, gentoo doesn't verify installs. You can do something like

Code: Select all

emerge -e world
. Type

Code: Select all

emerge -evp world
to see it's outcome. Try

Code: Select all

man emerge
to see all the other options. There is also a portage howto on the documentation page: http://www.gentoo.org/doc/en/portage-user.xml
Top
murphy
n00b
n00b
Posts: 21
Joined: Sat Feb 01, 2003 4:03 pm

  • Quote

Post by murphy » Sun Apr 20, 2003 2:38 pm

I have a very similar problem. I was upgrading from 1.4rc2 to 1.4rc4. I was following the upgrade manual and was upgrading portage (emerge -u portage). I left for work, thinking all should be fine until I get back. I do, and I was kicked out of XWindows without any kind of error message (I guess I should have known not to do that but...). I tried starting portage's upgrading again and it gave me that error message about python2.2 (except it didn't have /usr/bin in front of it). I tried /sbin/ldconfig. It doesn't say anything, it just ran for a couple seconds and returned me to the command prompt. I tried emerge -up portage and it still gave me the same error message. I went to /usr/lib/gcc-lib/i686-pc-...-gnu/3.2.2/ and tried ldconfig -l libstdc++.so.5 and it said that it wasn't a regular file. I noticed that there was a libstdc++.so.5.0.2 and I tried the same thing with that. It seemed to run with no problem. So, I tried emerge -up portage again and it said the same error message. Any other ideas? Thanks for the help.

Glenn Murphy
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Sun Apr 20, 2003 5:59 pm

Moved from Installing Gentoo.
Quis separabit? Quo animo?
Top
fountjas
n00b
n00b
Posts: 3
Joined: Fri Jan 24, 2003 7:17 pm

  • Quote

Post by fountjas » Fri May 02, 2003 7:30 pm

I had a similar problem and managed to solve it !

first I did

Code: Select all

ldconfig -v | grep libstdc
There was nothing on my sick box, but on my working box got :-
libstdc++.so.5 -> libstdc++.so.5.0.2
Then I check /etc/ld.so.conf and found the following line was missing on the sick box :-
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2
I added the above line then just ran

Code: Select all

ldconfig
as root, that seemed to fix it :D
Top
Post Reply

7 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