Please try:We are also getting the following error on cloudlinux7:
checking for libcurl installation... configure: error: libcurl not found. libcurl (e.g. libcurl-devel) is required in order to build freshclam and clamsubmit.
It would be great if this could be fixed in custombuild.
cd /usr/local/directadmin/custombuild ./build set curl yes ./build curl
/usr/bin/ld: warning: libssl.so.9, needed by ../libclamav/.libs/libclamav.so, may conflict with libssl.so.8 /usr/bin/ld: warning: libcrypto.so.9, needed by ../libclamav/.libs/libclamav.so, may conflict with libcrypto.so.8 ../libclamav/.libs/libclamav.so: undefined reference to `libiconv' ../libclamav/.libs/libclamav.so: undefined reference to `libiconv_close' ../libclamav/.libs/libclamav.so: undefined reference to `libiconv_open' clang: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make: stopped in /usr/local/directadmin/custombuild/clamav-0.102.1/clamscan *** Error code 1 Stop. make: stopped in /usr/local/directadmin/custombuild/clamav-0.102.1 *** Error code 1 Stop. make: stopped in /usr/local/directadmin/custombuild/clamav-0.102.1
I was getting the "too old" message as well.Update:
After doing: 'whereis libcurl' I changed the configure.clamav file from '--with-libcurl=/usr/local' to ' --with-libcurl=/usr'
After that I got this message:
checking for libcurl installation... /usr
checking for gawk... (cached) gawk
checking for curl-config... /usr/bin/curl-config
configure: error: Your libcurl (e.g. libcurl-devel) is too old. Installing ClamAV with clamonacc requires libcurl 7.45 or higher. For a quick fix, run ./configure again with --disable-clamonacc if you do not wish to use on-access scanning features. For more information on ClamAV's on-access scanner, please read our documentation: https://www.clamav.net/documents/on-access-scanning#on-access-scanning
Then I added '--disable-clamonacc' to the configure.clamav file, after this clamav updated