setting lib paths
I compiled my application successfully, but now when I try to run it, it says it requires libOgreMain.so.11 to run, which is correct, but the lib is already in /usr/local/lib. How can I make sure the programs looks there? Is there something for libs equivilant to the $PATH env variable for binaries? If I were lazy i could copy the required libs into the run dir, but what is the proper way of going about this problem?
|
There should be an entry for /usr/local/lib in /etc/ld.so.conf, check as follows:
Code:
cat /etc/ld.so.conf | grep /usr/local/lib You also might need to set PKG_CONFIG_PATH, but that's for compiling. |
Hmm the only three lines are:
$ cat /etc/ld.so.conf /lib32 /usr/lib32 /usr/X11R6/lib32 Does ubuntu handle it differently somehow? I can't imagine my system would function at all if /usr/lib and /usr/local/lib were supposed to be in there, but this is the only app that currently has this problem. |
Quote:
|
Quote:
|
Follow the instructions posted by ciotog (post 2) and your apps will also search for libs in /usr/local/lib.
|
Quote:
|
All times are GMT -5. The time now is 02:43 AM. |