LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-23-2008, 06:45 PM   #1
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

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


I keep getting this error.

Code:
avant-window-navigator: error while loading shared libraries: libawn.so.0: 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 libwhatever.so, type in "LD_PRELOAD=/path/to/lib/libwhatever.so application" into a terminal just to get the program to run. Something isn't working right.
 
Old 03-23-2008, 06:58 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,589

Rep: Reputation: 187Reputation: 187
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 07:13 PM.
 
Old 03-23-2008, 08:08 PM   #3
Romanus81
Member
 
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, 03:54 AM   #4
duryodhan
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-29-2008, 12:11 AM   #5
Romanus81
Member
 
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?
 
  


Reply


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: libpopt.so.0" saranga2000 Linux - Enterprise 4 04-26-2013 07:50 PM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 06:47 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 08:03 AM
Linux boot hang : "init: error loading shared libraries" colinprice72 Linux - General 0 01-16-2004 10:04 AM
"Error while loading shared libraries" - different solutions? stodge Programming 3 05-11-2003 03:19 AM


All times are GMT -5. The time now is 06:35 PM.

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