下載openssl
https://www.openssl.org/source/
自己爲了方便打包簽名,編譯成靜態庫
這裏下載的版本爲openssl-1.1.1c.tar.gz
tar -zxf openssl-1.1.1c.tar.gz
cd openssl-1.1.1c
./config -fPIC no-shared --prefix=/usr/local
make
sudo make install
下載libcurl
自己爲了方便打包簽名,同樣編譯成了靜態庫
這裏下載的版本爲curl-7.61.0.zip
unzip curl-7.61.0.zip
cd curl-7.61.0
./configure CFLAGS=-fPIC --disable-ldap --disable-ldaps --enable-shared=no
make
解決方法
在curl-7.61.0目錄執行
./configure CFLAGS=-fPIC --disable-ldap --disable-ldaps --enable-shared=no --without-darwinssl --with-ssl=/usr/local
make
sudo make install
--without-darwinssl 禁用Apple OS本機SSL/TLS
--with-ssl=/usr/local 指定openssl的位置
來源:簡書 https://www.jianshu.com/p/5e46df9c5fe7