我是靠谱客的博主 舒适草莓,最近开发中收集的这篇文章主要介绍centos 7离线安装clamav失败,/usr/bin/ld: warning: libssl.so.1.1, needed by ../libclamav/.libs/libclamav.so,,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

centos 7离线安装clamav失败

    • 离线安装过程

离线安装过程

tar -zxvf clamav-0.103.1.tar.gz
cd clamav-0.103.1
./configure --prefix=/usr/local/clamav --with-pcre
make

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

暂且记下问题,待解决后补充

1)使用rpm安装
下载openssl11-libs包(https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/o/openssl11-libs-1.1.1g-2.el7.x86_64.rpm)
rpm -ivh openssl11-libs-1.1.1g-2.el7.x86_64.rpm
然后依旧报错

  CCLD     sigtool
/usr/bin/ld: warning: libssl.so.1.1, needed by ../libclamav/.libs/libclamav.so, may conflict with libssl.so.10
/usr/bin/ld: warning: libcrypto.so.1.1, needed by ../libclamav/.libs/libclamav.so, may conflict with libcrypto.so.10
/usr/bin/ld: ../shared/.libs/libshared.a(cdiff.o): undefined reference to symbol 'EVP_MD_CTX_new@@OPENSSL_1_1_0'
/usr/lib64/libcrypto.so.1.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [sigtool] Error 1
make[2]: Leaving directory `/usr/local/clamav-0.103.1/sigtool'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/clamav-0.103.1'
make: *** [all] Error 2

最后

以上就是舒适草莓为你收集整理的centos 7离线安装clamav失败,/usr/bin/ld: warning: libssl.so.1.1, needed by ../libclamav/.libs/libclamav.so,的全部内容,希望文章能够帮你解决centos 7离线安装clamav失败,/usr/bin/ld: warning: libssl.so.1.1, needed by ../libclamav/.libs/libclamav.so,所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(56)

评论列表共有 0 条评论

立即
投稿
返回
顶部