ldconfig /home/username/lib
ldconfig -m
rather.Alt said:You can set env var LD_LIBRARY_PATH to set search path for lib
Hower, this ignored by suid apps
You can put into makefileTo encode search path into appCode:LDFLAGS = -rpath /path/to/lib/
Have you tried?jronald said:But LD_LIBRARY_PATH is also system wide.
# ./fcgi-server
/libexec/ld-elf.so.1: Shared object "libsoci_core.so" not found, required by "fcgi-server"
# setenv LD_LIBRARY_PATH /home/alt/projects/cpp/fcgi-server
# ./fcgi-server
fork ok
Alt said:Have you tried?![]()
Anyway you can do -rpathCode:# ./fcgi-server /libexec/ld-elf.so.1: Shared object "libsoci_core.so" not found, required by "fcgi-server" # setenv LD_LIBRARY_PATH /home/alt/projects/cpp/fcgi-server # ./fcgi-server fork ok
jronald said:Is there any method to localize the lib file, without polluting any system wide things?
Brandybuck said:What do you mean "localize". If you want it available for just one user, then use LD_LIBRARY_PATH. It will only "pollute" the current terminal session.
Or you want write a two line script to run your executable:
export LD_LIBRARY_PATH=~/lib/libfunky.so
~/bin/funkyapp