Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-23-2008, 05:45 PM   #1
Registered: Feb 2008
Posts: 201

Rep: Reputation: 31
Did something get installed wrong? "error while loading shared libraries"

I keep getting this error.

avant-window-navigator: error while loading shared libraries: cannot open shared object file: No such file or directory
I tried installing Compiz, and kept getting errors where it couldn't find libraries for libGL, libdecorator, etc, and now I finally got it to work by installing 6.0, I go to install awn, and I get this error. Obviously the above error is most recent. Every time I have to search for the, type in "LD_PRELOAD=/path/to/lib/ application" into a terminal just to get the program to run. Something isn't working right.
Old 03-23-2008, 05:58 PM   #2
LQ Guru
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,891

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339
Whenever you add new programs to the link libraries you need to run the ldconfig command to set up the link libraries links and cache. Your problem sounds to me like ldconfig is not being run after you update the link libraries. Also every distribution I have ever used runs ldconfig at every boot.

You could try an experiment. The next time you need to do LD_PRELOAD= try running ldconfig as root instead. If that works then the solution to your problem is to run ldconfig after you do a package update.

Steve Stites

P.S. Typically rpm packages and deb packages issue ldconfig as part of the install when they install link library files. How are you installing your packages?

Last edited by jailbait; 03-23-2008 at 06:13 PM.
Old 03-23-2008, 07:08 PM   #3
Registered: Feb 2008
Posts: 201

Original Poster
Rep: Reputation: 31
If I can't find a .tgz I install from source. "su -c ldconfig" made awn work, but I never had to use ldconfig when I installed something in ubuntu from source, is there supposed to be something that automatically starts ldconfig when you compile from source?
Old 03-24-2008, 02:54 AM   #4
Senior Member
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
if you used src2pkg (which is a nice way) to create a package from src. Then on running installpkg , ldconfig is automatically run. Also ldconfig in a normal slackware setup is run on startup. Maybe you/somebody else has tinkered with the startup scripts? (for e.g I have disabled ldconfig on startup!)
Old 03-28-2008, 11:11 PM   #5
Registered: Feb 2008
Posts: 201

Original Poster
Rep: Reputation: 31
Well, I got a new annoying problem, this keeps popping up in more than once place now.
I tried starting CCSM from compiz, and now I need to run it using
"PYTHONPATH=/usr/local/lib/python2.5/site-packages ccsm"
This was so annoying because I couldn't get it to work with fusion icon that I renamed /usr/local/bin/ccsm to ccsm~ and replaced ccsm with a bash script that would run ccsm~ with the python path.
I can't compile anything with git because I aways get an error with PKG_CONFIG_PATH, so now I have to run it with "PKG_CONFIG_PATH=/usr/local/share/pkgconfig:/usr/local/lib/pkgconfig/" just so it knows where to find everything.
I've never had to do stuff like this before, I've been using linux for a year now, and slackware for at least 2 months, I did a complete reinstall and now this is popping up as a problem. What's going on?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reboot Error: "initlog: error while loading shared libraries:" saranga2000 Linux - Enterprise 4 04-26-2013 06:50 PM
error while loading shared libraries: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
error while loading shared libraries: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
Linux boot hang : "init: error loading shared libraries" colinprice72 Linux - General 0 01-16-2004 09:04 AM
"Error while loading shared libraries" - different solutions? stodge Programming 3 05-11-2003 02:19 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration