系统:centos 7
场景:安装 xunsearch 时,要求 openssl < 1.1.0(成功) 或者 libevent 2.1.x(失败)
报错:「 如下 」
make[2]: *** [bufferevent_openssl.lo] Error 1
make[2]: Leaving directory `/Data/app/xunsearch-full-1.4.14/libevent-2.0.21-stable'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/Data/app/xunsearch-full-1.4.14/libevent-2.0.21-stable'
make: *** [install] Error 2
ERROR: failed to compile libevent, see 'setup.log' for more detail
# openssl-1.0.1g
tar -xzvf openssl-1.0.1g.tar.gz
cd openssl-1.0.1g
./config shared zlib -DOPENSSL_NO_HEARTBEATS
make
make install
mv /usr/bin/openssl /usr/bin/openssl.OFF
mv /usr/include/openssl /usr/include/openssl.OFF
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl
echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
echo "/usr/local/lib64" >> /etc/ld.so.conf
ldconfig -v
openssl version 「 脏文件 /usr/local/bin/openssl (执行文件) &/usr/local/include/openssl(库文件) 」
-
OpenSSL 1.0.1g 7 Apr 2014
# xunsearch-full-1.4.8 安装成功
tar jxf xunsearch-full-1.4.8.tar.bz2
cd xunsearch-full-1.4.8/
./setup.sh