Sophos Anti-Virus for UNIX/Linux: system reports 'not found' or 'cannot load library'
If your UNIX system returns 'not found' or 'cannot load library' messages when you try to run Sophos
What to do
Ensure that the environment variables in your login script or profile include the directories that Sophos
- PATH should include
/usr/local/bin - MANPATH should include
/usr/local/man - LD_LIBRARY_PATH should include
/usr/local/lib.
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
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.
- If you do not have a login script, you will need to reset these values every time you restart the server.
If you need more information or guidance, then please contact technical support.
- Article ID: 10151
- Created: 16 Dec 2003
- Last updated: 14 Oct 2008
