LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2010, 08:19 AM   #1
vlyamtse
Member
 
Registered: Apr 2007
Posts: 54

Rep: Reputation: 15
run-time problem with shared lib load


Hello,
I have installed '.so' libs into /usr/local/lib but it seems like application still cannot load them even though i have /usr/local/lib
in /etc/ld.so.conf.d/libc.conf
Application works fine if I add path to the '*.so' files into LD_LIBRARY_PATH, so this is load path issue, the system is Ubuntu...
It was my understanding that having shared libs in /etc/ld.so.conf is sufficient for app to find shared libs, do i have to do something else to have /usr/local/lib as default load path?
Thanks,
-V
 
Old 07-01-2010, 12:41 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You have to run
Code:
sudo ldconfig
after adding/editing paths to shared libraries
 
Old 07-02-2010, 07:13 AM   #3
vlyamtse
Member
 
Registered: Apr 2007
Posts: 54

Original Poster
Rep: Reputation: 15
Re:

ldconfig. Tried that - doesn't help
 
Old 07-03-2010, 04:03 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

What happens if you put /usr/local/lib directly in /etc/ld.so.conf before the include statement?
You can run "ldconfig -v" afterwards, to see if it's added.
 
Old 07-03-2010, 04:12 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Some ( very few ) executables are hard coded to look for
their shared libraries in /usr/lib/ only.

Thus an entry to /etc/ld.so.conf may not work.

..
 
  


Reply



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
Eclipse CppUnit Test Run Time Error - libcppunit-1.12.so.1: cannot open shared object aayu09 Linux - Software 12 08-05-2010 07:38 PM
[SOLVED] At run time get: "Error while loading shared libraries: libgdal.so.1:" firani Linux - Newbie 1 06-14-2010 01:05 PM
reverse dependency problem while dlopen shared lib er_khatke Programming 1 08-25-2009 08:48 AM
Problem creating shared lib containing templates. Help...... linuxmthomson Programming 2 11-19-2008 01:03 AM
Why doesn't my shared lib load? BBB Programming 4 05-30-2005 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:42 AM.

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
Open Source Consulting | Domain Registration