LinuxQuestions.org
Review your favorite Linux distribution.
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 10-03-2005, 05:32 PM   #1
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Rep: Reputation: 31
What is ldconfig?


I had a program which wasn't working because it was looking for the so files in /usr/lib but when I looked at /etc/ld.so.conf it had /usr/local/lib in there already. So I ran /sbin/ldconfig and the program worked.

What is ldconfig, and why didn't this work initially? Shouldn't this be established when the computer starts?
 
Old 10-03-2005, 06:27 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,342

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
"I had a program which wasn't working because it was looking for the so files in /usr/lib but when I looked at /etc/ld.so.conf it had /usr/local/lib in there already. So I ran /sbin/ldconfig and the program worked."

/etc/ld.so.conf is the library where you set up the list of libraries to be included in the dynamic link libraries. But /etc/ld.so.conf is not the list that the kernel actually uses for a dynamic link library list. The kernel uses /etc/ld.so.cache. ldconfig is the program which takes /etc/ld.so.conf and builds /etc/ld.so.cache.

"What is ldconfig, and why didn't this work initially? Shouldn't this be established when the computer starts?"

You were probably in the situation that /usr/local/lib was in /etc/ld.so.conf but was not in /etc/ld.so.cache until after you ran ldconfig.

---------------------
Steve Stites
 
Old 10-03-2005, 06:31 PM   #3
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Original Poster
Rep: Reputation: 31
Thanks!
 
  


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
where is ldconfig ? trutnev Red Hat 3 06-01-2005 12:05 PM
ldconfig diefree Fedora 4 12-11-2004 02:20 AM
Question about ldconfig laiboonh Slackware 26 11-30-2004 03:04 PM
what does ldconfig do ? rajorshi Slackware 8 09-14-2004 04:19 PM
ldconfig gui10 Slackware 3 05-14-2002 08:30 AM

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

All times are GMT -5. The time now is 04:55 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