Ubuntu编译clamav时报如下错误:
CMake Error at /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Libcheck (missing: LIBCHECK_INCLUDE_DIR LIBCHECK_LIBRARY)
Call Stack (most recent call first):
/usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
cmake/FindLibcheck.cmake:89 (find_package_handle_standard_args)
CMakeLists.txt:194 (find_package)
sudo apt-get install check
执行完就没有这个错误了。
但是又出现如下错误:
CMake Error at /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.22/Modules/FindBZip2.cmake:66 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:433 (find_package)
继续执行:
sudo apt-get install libbz2-dev
此错误解决了,另一个错误又出现了
CMake Error at /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.22/Modules/FindLibXml2.cmake:108 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:438 (find_package)
sudo apt-get install libxml2-dev
CMake Error at /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find PCRE2 (missing: PCRE2_LIBRARIES PCRE2_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
cmake/FindPCRE2.cmake:72 (find_package_handle_standard_args)
CMakeLists.txt:443 (find_package)
sudo apt-get install -y libpcre2-dev
CMake Error at /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find JSONC (missing: JSONC_LIBRARIES JSONC_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
cmake/FindJSONC.cmake:34 (find_package_handle_standard_args)
CMakeLists.txt:461 (find_package)
sudo apt install libjson-c-dev
CMake Error at cmake/FindCURSES.cmake:137 (message):
Unable to find ncurses or pdcurses
Call Stack (most recent call first):
CMakeLists.txt:490 (find_package)
sudo apt-get install libncurses5-dev libncursesw5-dev
CMake Error at /usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Milter (missing: Milter_LIBRARY Milter_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
cmake/FindMilter.cmake:60 (find_package_handle_standard_args)
CMakeLists.txt:493 (find_package)
apt-get install -y libmilter-dev