This article is from the FAQ, by with numerous contributions by others.
After linking shared objects, the LD_LIBRARY_PATH should be set so that it
includes the directory, where the shared object files reside. The compiler
will tell which directory this is. If you get an error like:
793:./foo: rld: Fatal Error: cannot map soname 'foo1..gso' \
using any of the filenames /usr/lib/foo1..gso:/lib/foo1..gso:\
/lib/cmplrs/cc/foo1..gso:/usr/lib/cmplrs/cc/foo1..gso: \
-- either the file does not exist or the file is not mappable \
(with reason indicated in previous msg)
when running you application (here foo), this may be caused by
LD_LIBRARY_PATH not being set correctly.
 
Continue to: