Page 1 of 1

shared libraries

Posted: 2008-07-10T10:04:38-07:00
by kh263
My application is having trouble loading the shared library libMagick++.so.1 . Where must this file be? Are there environment variables that must point to this file?

Re: shared libraries

Posted: 2008-07-10T22:29:11-07:00
by anthony
It must be in a standard library directory like /usr/lib, as set by the ldconfig command.

OR in the directories specified (in order) by the LD_LIBRARY_PATH under UNIX, or the equivalent under Macs.

The ldd command given the executable file as an argument will list the libraries wanted and the librarys it matched up to those wants. This lets you check you are getting the right library for special cases such as having multiple versions of some library.