- 下载编译openssl
- 下载编译libssh2
- 下载
- 解压
- 编译
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