centos 7离线安装clamav失败,/usr/bin/ld: warning: libssl.so.1.1, needed by ../libclamav/.libs/libclamav.so,
程序员文章站
2022-05-27 13:34:18
...
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 `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_1_1_0'
../libclamav/.libs/libclamav.so: undefined reference to `[email protected]_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 '[email protected]@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
上一篇: Ubuntu磁盘扩容 ”一条龙“
下一篇: Linux 虚拟机安装mysql数据库