ClamAV 0.104.0 installation error

jvdwilk

Verified User
Joined
Aug 2, 2006
Messages
40
While running a regular update from shell, I am seeing a blocking error message on the ClamAV installation:

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.

Now while the file is only two lines long, I have no idea what should be the correct line...

Code:
#!/bin/sh
./configure --prefix=/usr/local --sysconfdir=/etc --with-xml=/usr/local --with-zlib=/usr --with-libcurl=/usr/local

except that in my /usr/local/directadmin/custombuild directory I do not have a ./configure command, just a configure sub-directory ...
 
move threads to here


it just missing binary "configure / config" file
 
yes, well... you make it sound very obvious and simple, but I am afraid I have no idea how to fix this, so reporting it here for 'fixing' ..?
 
I also have a problem with ClamAV 0.104.0 giving an error during installation from custombuild on the command line.
I'm running AlmaLinux 8.

It seems to be related to Python3 but all previous versions worked.

Installing clamav 0.104.0 ...
Found /usr/local/directadmin/custombuild/clamav-0.104.0.tar.gz
Extracting ...
Done.
Configuring clamav 0.104.0 ...
Cannot find json-c, installing it...
Last metadata expiration check: 0:10:09 ago on Tue Sep 14 09:34:41 2021.
Package json-c-devel-0.13.1-0.4.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
-- The C compiler identification is GNU 8.4.1
-- The CXX compiler identification is GNU 8.4.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.27.0")
-- Found Libcheck: /usr/include
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindPython/Support.cmake:2966 (find_package_handle_standard_args)
/usr/share/cmake/Modules/FindPython3.cmake:389 (include)
CMakeLists.txt:197 (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.
 
Try: yum install libarchive before running ./build versions. This fixed it for me on Centos 8.3+
 
Doesn't it work with latest version of CustomBuild?

Code:
# ./build --help
 +-----------------------------------------------------------+
 | DirectAdmin WebServices Installer                         |
 | Written by Martynas Bendorius and DirectAdmin             |
 | Version: 2.0.0 (rev: 2748)                                |

If this is the latest version, than no.. otherwise, how do I update CB?
 
Yes, it's latest, what's the error you get?

These are the final lines of the output
Code:
-- 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.

Loos like BZip2 is missing, but it looks like it's installed though.. maybe it needs some extra bz2 package?
Code:
# bzip2 --help
bzip2, a block-sorting file compressor.  Version 1.0.6, 6-Sept-2010.
 
These are the final lines of the output
Code:
-- 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.

Loos like BZip2 is missing, but it looks like it's installed though.. maybe it needs some extra bz2 package?
Code:
# bzip2 --help
bzip2, a block-sorting file compressor.  Version 1.0.6, 6-Sept-2010.
Please check if the following helps:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build clamav

It should update to latest revision, which checks for bzip2-devel package too.
 
I had this error too last night on a Centos 8 machine (not on the Centos 7 machines), you have to install python and then it's fixed.

yum install python3

after that check update and update python if necessary.
 
Please check if the following helps:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build clamav

It should update to latest revision, which checks for bzip2-devel package too.
It didn't at the first try two hours ago, but just gave it another try and it does seem to work now

Thanks!
 
Two different issues are now mixed up. Any ideas on the initial problem:

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

Or does the fix for the second issue also cover the first?
 
I can confirm that CB works now with AlmaLinux 8 as Centos 7 without problems.
 
Hmm, still failing on CentOS 7.9 here.

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/custom/clamav/configure.clamav: line 2: ./configure: No such file or directory

# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

# ./build version
2.0.0 (rev: 2751)
 
Back
Top