libssh2.so.1: cannot open shared object file: No such file

libssh2.so.1: cannot open shared object file: No such file

解決辦法:安裝libssh2

1、下載安裝包,然後解壓。在這裏提供下載資源,地址如下:

https://download.csdn.net/download/qq_31710263/11862939

2、安裝

cd 到解壓出的目錄下,運行下面的代碼.

./configure --prefix=/usr --disable-static && make
 sudo make install

結果如下表示裝好了:

make[2]: Leaving directory '/home/hao/softwares/libssh2/libssh2-1.8.0/docs' make[1]: Leaving directory '/home/hao/softwares/libssh2/libssh2-1.8.0/docs' Making install in example make[1]: Entering directory '/home/hao/softwares/libssh2/libssh2-1.8.0/example' make[2]: Entering directory '/home/hao/softwares/libssh2/libssh2-1.8.0/example' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/hao/softwares/libssh2/libssh2-1.8.0/example' make[1]: Leaving directory '/home/hao/softwares/libssh2/libssh2-1.8.0/example' make[1]: Entering directory '/home/hao/softwares/libssh2/libssh2-1.8.0' make[2]: Entering directory '/home/hao/softwares/libssh2/libssh2-1.8.0' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/usr/include' /usr/bin/install -c -m 644 include/libssh2.h include/libssh2_publickey.h include/libssh2_sftp.h '/usr/include' /bin/mkdir -p '/usr/lib/pkgconfig' /usr/bin/install -c -m 644 libssh2.pc '/usr/lib/pkgconfig' make[2]: Leaving directory '/home/hao/softwares/libssh2/libssh2-1.8.0' make[1]: Leaving directory '/home/hao/softwares/libssh2/libssh2-1.8.0'

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章