Ubuntu 14.04 安装libssh

参考:

libssh

[CMake] include command

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

原文地址:https://www.cnblogs.com/qq952693358/p/7010563.html