shinena_deng
shinena_deng
采纳率0%
2021-02-25 18:35

离线安装clamav失败

离线安装clamav-0.103.1

操作步骤

tar -zxvf clamav-0.103.1.tar.gz

cd clamav-0.103.1

./configure --prefix=/usr/local/clamav --with-pcre

make

执行后报错

make[2]: Entering directory `/usr/local/clamav-0.103.1/clamscan'
  CCLD     clamscan
/usr/bin/ld: warning: libssl.so.1.1, needed by ../libclamav/.libs/libclamav.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libcrypto.so.1.1, needed by ../libclamav/.libs/libclamav.so, not found (try using -rpath or -rpath-link)
../libclamav/.libs/libclamav.so: undefined reference to `EVP_MD_block_size@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_SignFinal@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_STORE_CTX_free@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_PKEY_size@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_new_mem_buf@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_VerifyFinal@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_read@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_STORE_add_crl@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_MD_CTX_md@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_get_digestbyname@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_get_pubkey@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `PEM_read_bio_X509@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_MD_CTX_new@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `PEM_read_bio_X509_AUX@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_ctrl@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_MD_CTX_free@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `PEM_read_X509@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_STORE_set_flags@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_DigestInit_ex@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_s_mem@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_MD_size@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_LOOKUP_file@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_STORE_CTX_new@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `PEM_read_PrivateKey@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_DigestUpdate@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_STORE_new@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_push@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_new@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_VERIFY_PARAM_set_flags@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_VERIFY_PARAM_new@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_STORE_add_lookup@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_CRL_free@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_cmp_current_time@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_verify_cert@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_s_file@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_STORE_set1_param@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_set_flags@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_DigestFinal_ex@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_MD_CTX_set_flags@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_f_base64@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `PEM_read_X509_CRL@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_STORE_free@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_free@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_LOOKUP_ctrl@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_free_all@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_write@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_CRL_get0_nextUpdate@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_VERIFY_PARAM_free@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_LOOKUP_hash_dir@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `X509_STORE_CTX_init@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_PKEY_free@OPENSSL_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `BIO_free@OPENSSL_1_1_0'
collect2: error: ld returned 1 exit status
make[2]: *** [clamscan] Error 1
make[2]: Leaving directory `/usr/local/clamav-0.103.1/clamscan'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/clamav-0.103.1'
make: *** [all] Error 2

然执行openssl 是正常

 

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答