下载编译openssl
https://blog.csdn.net/quantum7/article/details/104086731
下载编译libssh2
https://quantum6.blog.csdn.net/article/details/106130240
下载
https://curl.haxx.se/download.html
解压
编译
BUILD_LIBS=${HOME}/build_libs ./configure \ --prefix=${BUILD_LIBS} \ --with-ssl=${BUILD_LIBS}/openssl \ --with-libssh2=${BUILD_LIBS} \ --with-zlib \ CFLAGS=-fPIC \ --enable-shared make make install
实际编译中,prefix设置无效,需要:
sudo make install