LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search





News Sections
Home
General News (3972/0)
Reviews (626/0)
Press Releases (464/0)
Distributions (187/0)
Software (807/0)
Hardware (522/0)
Security (192/0)
Tutorials (337/0)
Off Topic (180/0)


User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User


Events
There are no upcoming events



CLI Magic: ldconfig and friends   
Monday, May 16 2005 @ 06:45 PM EDT
Contributed by: glosser

The next segment in the Command-Line-Interface series from Linux.com is on ldconfig.

If you're like most Linux desktop users, there will come a day when you will want or need a program that isn't included or supported by your distribution of choice. If you build the needed app from source code, you might still not be able to run it because of missing dependencies. But nothing is more frustrating than fighting your way through that unsupported landscape, including finding and building the missing libraries, only to still get an error message like this one: "error while loading shared libraries: libXrender.so.1: cannot open shared object file: No such file or directory." That's where ldconfig comes in, and why it pays to know a little about what it does and how to use it.

Dynamically linked libraries are located and loaded at run time, either by ld.so or ld-linux.so, depending on how it was compiled: in a.out or ELF format. Each of these programs looks through a list of places to find libraries when they are needed. One place they both look in is a file named /etc/ld.so.cache, which contains an ordered list of libraries to be searched for the needed module.

Full tutorial

  [ Views: 1462 ]  


CLI Magic: ldconfig and friends | 0 comments | Create New Account
The following comments are owned by whoever posted them. This site is not responsible for what they say.
No user comments.


What's Related
  • Full tutorial
  • More by glosser
  • More from Tutorials


  • Story Options
  • Mail Story to a Friend
  • Printable Story Format


  • We have written a range of guides highlighting excellent free books for popular programming languages. Check out the following guides: C, C++, C#, Java, JavaScript, CoffeeScript, HTML, Python, Ruby, Perl, Haskell, PHP, Lisp, R, Prolog, Scala, Scheme, and SQL.

    Built with GeekLog and phpBB
    Comments to the webmaster are welcome
    Copyright 2009 LinuxLinks.com - All rights reserved