Friday, 3 July 2009

HOWTO: add shared libraries to lib path in Linux

Permanent way:
  • Create a new file in /etc/ called .conf
  • Edit the file and add a line per directory of shared libraries (*.so files), it will look something like:
Reload the list of system-wide library paths:
  • sudo ldconfig
Temporary way:
  • export LD_LIBRARY_PATH=/your/lib/path
On Mac, the dynamic library path is $DYLD_LIBRARY_PATH

No comments:

My photo
London, United Kingdom

Facebook & Twitter