I apt-get removed default CMake and build CMake from source and installed the new version into /usr/local . But the cmake comannd does not works. I've tried following commands: $ source ~/.bashrc $ sudo ldconfig $ which cmake /usr/local/bin/cmake $ /usr/local/bin/cmake --version cmake version 3.18.4 $ cmake --version -bash: /usr/bin/cmake: No such file or directory I can create a soft link /usr/bin/cmake to /usr/local/bin/cmake , but I'm curious...
Originally asked by Devymex on Stack Exchange (askubuntu) (CC BY-SA 4.0).