problem with installing clam av
hello,
today I used your guide to install clamav (https://www.afp548.com/Articles/mail/postfix-sa.html).
but during installation I got an errormessage, that the directory "usr/local/bin/clamscan" doesn't exist.
I use mac os x server 10.2.6 and clamav-0.60
after the command "make" I found the following lines in the terminal:
*** Warning: linker path does not have real file for library -lbz2.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libbz2 and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/lib/libbz2.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
and also:
gcc -g -O2 -o .libs/clamscan clamscan.o options.o getopt.o others.o manager.o treewalk.o -L/Users/Shared/installers/clamav-0.60/libclamav -L/Users/Shared/installers/clamav-0.60/libclamav/.libs -lclamav -lz -lbz2
ld: table of contents for archive: /usr/lib/libbz2.a is out of date; rerun ranlib(1) (can't load from it)
ld: warning multiple definitions of symbol _strcasecmp
/Users/Shared/installers/clamav-0.60/libclamav/.libs/libclamav.dylib(strc.lo) definition of _strcasecmp
/usr/lib/libSystem.dylib(strcasecmp.So) definition of _strcasecmp
make[1]: *** [clamscan] Error 1
make: *** [all-recursive] Error 1
after that I used the following command:
Making install in libclamav
/bin/sh ../mkinstalldirs /usr/local/lib
/bin/sh ../libtool --mode=install /usr/bin/install -c libclamav.la /usr/local/lib/libclamav.la
/usr/bin/install -c .libs/libclamav.1.0.3.dylib /usr/local/lib/libclamav.1.0.3.dylib
(cd /usr/local/lib && rm -f libclamav.1.dylib && ln -s libclamav.1.0.3.dylib libclamav.1.dylib)
(cd /usr/local/lib && rm -f libclamav.dylib && ln -s libclamav.1.0.3.dylib libclamav.dylib)
/usr/bin/install -c .libs/libclamav.lai /usr/local/lib/libclamav.la
/usr/bin/install -c .libs/libclamav.a /usr/local/lib/libclamav.a
ranlib /usr/local/lib/libclamav.a
chmod 644 /usr/local/lib/libclamav.a
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ../mkinstalldirs /usr/local/include
/usr/bin/install -c -m 644 clamav.h /usr/local/include/clamav.h
Making install in clamscan
/bin/sh ../libtool --mode=link gcc -g -O2 -o clamscan clamscan.o options.o getopt.o others.o manager.o treewalk.o -L../libclamav -lclamav
gcc -g -O2 -o .libs/clamscan clamscan.o options.o getopt.o others.o manager.o treewalk.o -L/Users/Shared/installers/clamav-0.60/libclamav -L/Users/Shared/installers/clamav-0.60/libclamav/.libs -lclamav -lz -lbz2
ld: table of contents for archive: /usr/lib/libbz2.a is out of date; rerun ranlib(1) (can't load from it)
ld: warning multiple definitions of symbol _strcasecmp
/Users/Shared/installers/clamav-0.60/libclamav/.libs/libclamav.dylib(strc.lo) definition of _strcasecmp
/usr/lib/libSystem.dylib(strcasecmp.So) definition of _strcasecmp
make[1]: *** [clamscan] Error 1
make: *** [install-recursive] Error 1
an then:
sudo ln /usr/local/bin/clamscan /usr/bin/
ln: /usr/local/bin/clamscan: No such file or directory
any hints to solve this problem?
many thanks in advance!
bye
ferdinand