[英]freshclam: symbol lookup error: freshclam: undefined symbol: print_version, version FRESHCLAM_PRIVATE
我按照本指南在 Ubuntu 20.04 LTS 上從源代碼安裝 clamav,但在收到以下錯誤后我停止了: freshclam: symbol lookup error: freshclam: undefined symbol: print_version, version FRESHCLAM_PRIVATE
。 以下是我發出的命令:
./configure --enable-check
make -j2
make check
make install
sudo cp /usr/local/etc/freshclam.conf.sample /usr/local/etc/freshclam.conf
sudo nano /usr/local/etc/freshclam.conf
在 freshclam.conf 中,我剛剛在 Example 之前添加了 # 以將其注釋掉。 然后:
sudo mkdir /usr/local/share/clamav
freshclam
freshclam: symbol lookup error: freshclam: undefined symbol: print_version, version FRESHCLAM_PRIVATE
這個錯誤是什么意思?
以下是 ./configure --enable-check 和 make check 的輸出:
./configure --enable-check
configure: Summary of detected features follows
OS : linux-gnu
pthreads : yes (-lpthread)
configure: Summary of miscellaneous features
check : -lcheck_pic -pthread -lrt -lm -lsubunit
fanotify : yes
fdpassing : 1
IPv6 : yes
openssl : /usr
libcurl : /usr
configure: Summary of optional tools
clamdtop : yes (-Wl,-Bsymbolic-functions -lncurses -ltinfo)
milter : no (missing libmilter) (disabled)
clamsubmit : yes (libjson-c-dev found at /usr, linking=dynamic)
clamonacc : yes (auto)
configure: Summary of engine performance features
release mode: yes
llvm : no (disabled)
mempool : yes
configure: Summary of engine detection features
iconv : yes
bzip2 : ok
zlib : yes (from system)
unrar : yes
preclass : yes (libjson-c-dev found at /usr, linking=dynamic)
pcre : /usr
libmspack : yes (Internal)
libxml2 : yes, from /usr
yara : yes
fts : yes (libc)
configure: WARNING:
****** libjson-c is known to share symbol names with other JSON libraries
****** which may result in crashes for applications that use libclamav.
****** Consider using --with-libjson-static=path/to/libjson-c.a,
****** providing a json-c library that was compiled with CFLAGS="-fPIC".
make check
PASS: check_clamav
PASS: check_freshclam.sh
PASS: check_sigtool.sh
SKIP: check_unit_vg.sh
PASS: check1_clamscan.sh
PASS: check2_clamd.sh
PASS: check3_clamd.sh
PASS: check4_clamd.sh
SKIP: check5_clamd_vg.sh
SKIP: check6_clamd_vg.sh
SKIP: check7_clamd_hg.sh
SKIP: check8_clamd_hg.sh
SKIP: check9_clamscan_vg.sh
============================================================================
Testsuite summary for ClamAV 0.103.0
============================================================================
# TOTAL: 13
# PASS: 7
# SKIP: 6
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
PS 這不是我第一次嘗試在此計算機上安裝 clamav。 我第一次沒有這個錯誤,但后來我在執行sudo make uninstall
以完全刪除 clamav 文件並從頭開始安裝后手動刪除了一些文件。 我還刪除了 clamav 用戶和組,現在它們似乎不再自動創建,我想知道為什么。
我能夠通過以 root 身份運行ldconfig
來解決這個特定錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.