Where is that library install? In your home directory somewhere, in /usr/local/lib
, somewhere else? Hint: it ought to be installed in /usr/local/lib
operates in a minimum environment; i.e., it does not inherit a users environment.
If you have your library installed somewhere or other that's not one of the "standard" places, you'll need to do one of a few options.
First, let's say it's in /usr/local/lib
. Check to see if you have /etc/ld.so.conf
; if you do, open it in a editor and see if you have a line,
in that file. If you do, all done.
If you have that library in some other directory, say somewhere in your home directory, first think about moving it to /usr/local/lib
and if don't want to do that and you do have /etc/ld.so.conf
, put the absolute path name to the directory where that library file lives.
If you don't have /etc/ld.so.conf
, check around in /etc
and see if the environment variable LD_LIBRARY_PATH
is set somewhere (look in the subdirectories too). If you have that set somewhere, edit it and add
Or, if you can't find that anywhere (it may not be there), edit /etc/profile
and add the above export line to the bottom of it.
Personally, I'd move the thing to /usr/local/lib
, log out, log back in and see if it just works before I did anything else.
Hope this helps some.