ubuntu 系统中,通过apt安装的libssl-dev版本不匹配,需要重新编译ssl.
openssl 编译:
wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz --no-check-certificate
tar -xzvf openssl-1.0.2u.tar.gz
cd openssl-1.0.2u/
sudo ./config no-asm shared
sudo make install
libsourcey 编译:
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR)
cd libsourcey/
cmake -DOPENSSL_ROOT_DIR=/usr/local/ssl -DOPENSSL_LIBRARIES=/usr/local/ssl/lib
sudo make
sudo make install