1.下载openssl,进行编译
./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl/ssl
再make,在make install ;如果编译出的是静态文件,可加shared,编译为动态文件
2.编译libssh2
./configure --prefix=/usr/local/libssh2 --with-openssl CPPFLAGS="-I/usr/local/openssl/include" LDFLAGS="-L/usr/local/openssl/lib"
再make,在make install