I am trying to upgrade cmake on my linux computer. Here is the command I used
sudo apt purge --auto-remove cmake
After downloading and extracted cmake-3.13.3.tar.gz
./bootstrap
make
sudo make install
when I did cmake --version it returns
bash: /usr/bin/cmake: No such file or directory
However no cmake executable exists in /usr/bin and strangely which cmake returns
/usr/local/bin/cmake
which is where cmake actually is.
My $path is
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
How do I have the command cmake point to /usr/local/bin/cmake?