If your UNIX system returns not found or cannot load library messages when you try to run Sophos Anti-Virus for UNIX/Linux, you probably need to change your system settings.
Applies to the following Sophos products and versions Sophos Anti-Virus for Unix 7.3.7
Ensure that the environment variables in your login script or profile include the directories that Sophos Anti-Virus uses.
In AIX, the library environment variable is LIBPATH and in HPUX it is SHLIB_PATH.
On some systems, such as FreeBSD and Linux, you can enable Sophos Anti-Virus to use the Sophos Anti-Virus shared libraries by running ldconfig. This may require editing of /etc/ld.so.conf.
Adding environment variables
If any of the above variables are not included, add them to the environment variable(s) as shown in the examples below. Do not alter any of the existing settings.
If you are running the sh, ksh or bsh shell, enter:
PATH=$PATH:/usr/local/bin export PATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export LD_LIBRARY_PATH
If you are running the csh or tsh shell, enter:
setenv PATH [values]:/usr/local/bin setenv LD_LIBRARY_PATH [values]:/usr/local/lib
Where, [values] are the existing settings.
You should make these variables system-wide. To do this, amend /etc/login or /etc/profile.
Note: If you do not have a login script, you will need to reset these values every time you restart the server.
If you've spotted an error or would like to provide feedback on this article, please use the section below to rate and comment on the article. This is invaluable to us to ensure that we continually strive to give our customers the best information possible.
Every comment submitted here is read (by a human) but we do not reply to specific technical questions. If you need technical support please post a question to our community. Alternatively for licensed products open a support ticket.