I am on Ubuntu 16.04. First time using a Linux system.
I installed cmake
and I can check it in the terminal by typing
/opt/cmake/bin/cmake -version
cmake version 2.8.3
However, when I try to install another program that needs 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
How to fix this program? I thought I should set some path
but I am not sure about that...
Also when I am in the folder where cmake
is located and type cmake -version
like this
~/cmake-2.8.3/bin$ cmake -version
then it reports
The program 'cmake' is currently not installed. You can install it by typing:sudo apt install cmake