LinHES Forums
http://forum.linhes.org/

Default library search on R5.5
http://forum.linhes.org/viewtopic.php?f=6&t=18698
Page 1 of 1

Author:  Liv2Cod [ Mon Aug 04, 2008 4:58 pm ]
Post subject:  Default library search on R5.5

I admit to being somewhat unschooled in this Linux stuff. I'm trying to figure out if I have a problem or not. My specific issue is that I have installed a certain library in /usr/lib and it seems as though the programs which look for it are not finding it.

I looked at the contents of the files in the directory /etc/ld.so.conf.d and found that there is no mention of /usr/lib in either of the two files in the directory. (There IS a mention of /usr/local/lib, but not /usr/lib.) I noticed that there are many, many more library files in /usr/lib than in /usr/local/lib, so it left me with the question... If the files in /usr/lib are not being found, how could the system possibly even work??

I can't be specific about the library I am loading other than to say it has to do with a certain tropical fruit that is popular among MythTv users. And in the greater sense, the actual name of the library is unimportant in this context.

Author:  tjc [ Mon Aug 04, 2008 6:34 pm ]
Post subject: 

Is the file a shared library? These usually have names that end something like .so or .so.2 or .so.2.0.8 with the shorter forms generally being symlinks to the file with the full version number. If it's a .a file it's not going to do you much good unless you're going to compile and link statically against it. The best way to install shared libraries is usually via some automated process like a build script or using dpkg and a .deb file, or using alien with a .rpm file as they often have other parts and dependencies...

Author:  Liv2Cod [ Mon Aug 04, 2008 7:12 pm ]
Post subject: 

Thanks for the response. Yes, it is a shared library and it has versions that end in .so, .so.3, and .so.3.2.1. (There is a .a file too, but I don't care to use that.) The files were installed via "apt-get install" so they are from a standard dpkg distribution.

The shared libs are owned by root, and they have the "x" (execute) bit set.

Author:  Liv2Cod [ Tue Aug 05, 2008 12:02 am ]
Post subject: 

I found I was missing yet another piece of the tropical fruit. I now have all the fruit I need and my search for libraries is complete.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/