参考:
Ubuntu 14.04 安装libssh
$ git clone https://github.com/substack/libssh.git
$ cd libssh/build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..
$ make
$ make install
在cmake这步,出现:
CMake Error at CMakeLists.txt:36 (include):
include could not find load file:
CPackConfig.cmake
问题,解决方法是修改libssh/
目录下的CMakeLists.txt
文件,修改第36行为:
include(build/CPackConfig.cmake)
即可pass。
2017.6.14