LD_LIBRARY_PATH in Ubuntu



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
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Relevant Pages

  • Re: LD_LIBRARY_PATH in Ubuntu
    ... built system. ... In lib and include I have some custom scientific libraries that I ... This returns empty in Ubuntu: ...
    (Ubuntu)
  • Re: How to add libraries?
    ... adding the .lib to the project should work. ... I'm not sure why you're getting a custom build rule warning, ... Are you sure your VS installation isn't broken? ...
    (microsoft.public.vstudio.development)
  • Re: xubuntu: Can Thunar NOT start background stuff?
    ... The Ubuntu version of xfce4 used to use rox-filer (which happens to be my ... upgraded and ready to run BUT NOT shown on the application menus. ... So now I added rox-filer to a custom panel menu (along with all the ...
    (Ubuntu)
  • Re: Ubuntu in a flash
    ... I have to create a custom flash card with a recent version of Ubuntu. ... will transfer the content of the liveCD on a USB key. ...
    (Ubuntu)
  • building *-art packages/customizing ubuntu-artwork pacakge
    ... here at work we have Ubuntu on a bunch ... I would like ot make a package out of them/add them ... and have these custom themes be the ... default once the system is done installing. ...
    (Ubuntu)