- 下載下傳編譯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