我在 Ubuntu 16.04 上。第一次使用Linux系统。我安装了cmake,我可以通过键入在终端中检查它
/opt/cmake/bin/cmake -version
cmake version 2.8.3
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试安装另一个需要 cmake 的程序时
git clone --recursive https://github.com/Microsoft/LightGBM
cd LightGBM
mkdir build ; cd build
cmake ..
The program 'cmake' is currently not installed. You can install it by typing:sudo apt install cmake
Run Code Online (Sandbox Code Playgroud)
如何修复这个程序?我想我应该设置一些,path但我不确定...
此外,当我在所在的文件夹中cmake并输入cmake -version这样的内容时
~/cmake-2.8.3/bin$ cmake -version
Run Code Online (Sandbox Code Playgroud)
然后它报告
The program 'cmake' is currently not installed. You can install it by typing:sudo apt install cmake
Run Code Online (Sandbox Code Playgroud) cmake ×1