LD_LIBRARY_PATH in Ubuntu

Rutger van Haasteren rvhaasteren at gmail.com
Fri Feb 29 10:03:07 UTC 2008


Hi guys,

I am hoping one of you can help me. I have a problem loading custom shared
object (.so) files which are not installed on the system (I do not have root
access). Here's the deal:

I've written a C++ program that is configured and built using the GNU built
system. Relevant layout:
root
+ - src
+ - lib
+ - include

In lib and include I have some custom scientific libraries that I need:
lib/custom_lib.so   include/custom_header.h

My configure script successfully detects those custom libs, and builds my
program. But I do not know how to run them. On my work I have fedora, and
there I simply set the LD_LIBRARY_PATH environment variable to point to the
lib/ directory, but this does not work at home (yes, I like to work at home)
on Ubuntu. On some other distro's I have tried it works. This returns empty
in Ubuntu:

[1]-$ echo $LD_LIBRARY_PATH

[2]-$


The only thing that comes up using google is that some people do not have a
*-dev package installed, but I obviously do not want to do that. Any ideas?
TIA

Rutger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080229/49990105/attachment.html>


More information about the ubuntu-users mailing list