If you are attempting to link to an external shared library, and that library further depends on
other shared libraries, you may see a message similar to this:
Link failed for dynamic library '/fserver/nagprod/CL08/cll6a08dgl/acml/libnagc_acml.so'.
An error occurred: libacml.so: cannot open shared object file: No such file or directory
In this case you may need to set an environment variable to tell the system where to look to find shared libraries.
The environment variable name is operating-system dependent.
On Linux machines it is named LD_LIBRARY_PATH, and is a colon-separated
list of directories to be searched for libacml.so. For example,
if you use the C shell, the command
% setenv LD_LIBRARY_PATH /opt/NAG/cll6a08dgl/lib:${LD_LIBRARY_PATH}
will ensure that directory /opt/NAG/cll6a08dgl/lib gets searched.