Dennis Peterson said the following, On 03/17/2009 03:29 PM: > George R. Kasica wrote: > If you run the crle command with no options it will report the current global > library search path. It will also present a command line example of how to > recreate this path. Use can use that example and add any additional paths > needed.
I find it easiest to deal with this at compile time. If you set LDFLAGS and include the -R and -L (--library-path -rpath for linux) arguments before you run configure the runtime linker will know where to find the needed libraries. You then won't need to drag around LD_LIBRARY_PATH or LD_RUN_PATH anymore to make that binary function. You can also minimize the paths searched by crle (ld.so.conf linux) which are global for all binaries. CC=gcc CFLAGS="-O2 -pipe" LDFLAGS="-L/usr/local/lib -R/usr/local/lib" \ ./configure -- steve _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml