ClamAV 0.104.0, Nginx 1.21.3

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
956
Location
🇳🇱
Big release for ClamAV


Also Nginx 1.21.3 has been released
 
@smtalk Problems with ClamAV update:
Code:
Installing clamav 0.104.0 ...
Found /usr/local/directadmin/custombuild/clamav-0.104.0.tar.gz
Extracting ...
Done.
Configuring clamav 0.104.0 ...
/usr/local/directadmin/custombuild/configure/clamav/configure.clamav: line 2: ./configure: No such file or directory

*** There was an error while trying to configure clamav.
 
@smtalk
ClamAV update fail

Code:
Configuring clamav 0.104.0 ...
/usr/local/directadmin/custombuild/configure/clamav/configure.clamav: line 2: ./configure: No such file or directory

*** There was an error while trying to configure clamav.
 
I can confirm clamav does not install/update correctly
tested on centos 7 and almalinux (el 8)
both show this issue:

Code:
          Configuring clamav 0.104.0 ...            
            /usr/local/directadmin/custombuild/configure/clamav/configure.clamav: line 2: ./configure: No such file or directory                               
       *** There was an error while trying to configure clamav.

In case you are trying to update and existing install, you will stay on the older version due to the update fail.

In case you have just installed a fresh server, and still want to use clamav for production , I suggest to use the older version.

to revert to the older version use:
Code:
cd /usr/local/directadmin/custombuild
echo "clamav:0.103.3:f8dcf678953f6af056ddd5917bcc50c3" > custom_versions.txt
./build clamav
 
Worked correctly on Centos 8.

But problems for me on Centos 7....

Code:
Installing clamav 0.104.0 ...
Found /usr/local/directadmin/custombuild/clamav-0.104.0.tar.gz
Extracting ...
Done.
Configuring clamav 0.104.0 ...
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Found Libcheck: /usr/include 
-- Found Python3: /usr/bin/python3.6 (found version "3.6.8") found components: Interpreter
Python 3 package 'pytest' is not installed for /usr/bin/python3.6 and is not available in your PATH.
Failed unit tests will be easier to read if you install pytest.
Eg:  python3 -m pip install --user pytest
-- Valgrind not found.
-- Found Threads: TRUE 
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.0.2k") 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake3/Modules/FindBZip2.cmake:63 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:433 (find_package)


-- Configuring incomplete, errors occurred!
See also "/usr/local/directadmin/custombuild/clamav-0.104.0/build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/directadmin/custombuild/clamav-0.104.0/build/CMakeFiles/CMakeError.log".

*** There was an error while trying to configure clamav.
 
yes almalinux el8 took the update correctly.

centos 7 did not.
Code:
[root@server1 custombuild]# ./build update_script

 23:59:52 (877 KB/s) - './custombuild.tar.gz' saved [263741/263741]

Extracting custombuild.tar.gz...
[root@server1 custombuild]# ./build version
2.0.0 (rev: 2745)

[root@server1 custombuild]# rm -rf /usr/local/directadmin/custombuild/configure/clamav/
[root@server1 custombuild]# rm -rf clam*
[root@server1 custombuild]# ./build version
2.0.0 (rev: 2745)
[root@server1 custombuild]# ./build clean
[root@server1 custombuild]# ./build clamav
-- download--
Installing clamav 0.104.0 ...
Found /usr/local/directadmin/custombuild/clamav-0.104.0.tar.gz
Extracting ...
Done.
Configuring clamav 0.104.0 ...
./build: line 25430: /usr/local/directadmin/custombuild/configure/clamav/configure.clamav: No such file or directory

*** There was an error while trying to configure clamav.
 
Debian 10 updated fine.

Debian 9 failed to update with:
Code:
CMake Error: The source directory "/usr/local/directadmin/custombuild/clamav-0.104.0/build/ENABLE_MILTER=OFF" does not exist.
 
I think it has to do with the mirrors sync with the update stream...
some of my servers got the new version, some are still seeing the older version as latest.

I guess ill try again tomorrow, I have too many servers to wait for the update right now.

Thank you for the updates!
 
Just following up. To fix the build/install for Debian 9 I needed to:

Code:
pip3 install cmake
apt-get install libbz2-dev
 
For CentOS 7, I used -

# ### Enable EPEL repository ###
yum install epel-release
yum install cmake3
yum install bzip2-devel libxml2-devel

# ### Remove EPEL repository ###
yum erase epel-release

It seems working in my testing machine.
 
@smtalk can you fix it on Debian 11?


I have tried this more than 10 times with new installation since you said 'Fixed':

Code:
Failed unit tests will be easier to read if you install pytest.
Eg:  python3 -m pip install --user pytest
-- Valgrind not found.
-- Found Threads: TRUE
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1k")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.18/Modules/FindBZip2.cmake:63 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:433 (find_package)


-- Configuring incomplete, errors occurred!
See also "/usr/local/directadmin/custombuild/clamav-0.104.0/build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/directadmin/custombuild/clamav-0.104.0/build/CMakeFiles/CMakeError.log".

*** There was an error while trying to configure clamav.

When directadmin push its fix, will it first go to files.directadmin.com? Currently, download server is already set as

Code:
downloadserver=files.directadmin.com
unofficial_mirrors=no

I think I can temporarily downgrade this version as mentioned by @yonatanp
 
Last edited:
@smtalk can you fix it on Debian 11?


I have tried this more than 10 times with new installation since you said 'Fixed':

Code:
Failed unit tests will be easier to read if you install pytest.
Eg:  python3 -m pip install --user pytest
-- Valgrind not found.
-- Found Threads: TRUE
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1k")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.18/Modules/FindBZip2.cmake:63 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:433 (find_package)


-- Configuring incomplete, errors occurred!
See also "/usr/local/directadmin/custombuild/clamav-0.104.0/build/CMakeFiles/CMakeOutput.log".
See also "/usr/local/directadmin/custombuild/clamav-0.104.0/build/CMakeFiles/CMakeError.log".

*** There was an error while trying to configure clamav.

When directadmin push its fix, will it first go to files.directadmin.com? Currently, download server is already set as

Code:
downloadserver=files.directadmin.com
unofficial_mirrors=no

I think I can temporarily downgrade this version as mentioned by @yonatanp
I had this same problem on one of my machines, you have a missing dependency. Try:

Code:
apt-get install libbz2-dev

And then try again.
 
I had this same problem on one of my machines, you have a missing dependency. Try:

Code:
apt-get install libbz2-dev

And then try again.

Thanks, this package should have been installed by default by the pre-installed command when doing a fresh installation. Maybe they will add this soon.
 
I think this was just a recent change to the Clamav 103->104, requiring a newer cmake and also the bzip2-dev library. On my test system running Debian 10 it had no issues, everything was already present.

 
I do have issues on Debian 10

cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)
CMake Error at CMakeLists.txt:6 (cmake_minimum_required):
CMake 3.14 or higher is required. You are running version 3.13.4


-- Configuring incomplete, errors occurred!

*** There was an error while trying to configure clamav.
 
Last edited:
Back
Top