I just have installed CMAKE in my ubuntu machine.. So when I do whereis cmake, it gives me the actual path
username@phx7b02c-ee1b:~/CMAKE/cmake-2.8.11$ whereis cmake
cmake: /usr/bin/cmake
But whenever I try to get the version of cmake, I always get the below message.. I am not sure what wrong I am doing here?
username@phx7b02c-ee1b:~/CMAKE/cmake-2.8.11$ /usr/bin/cmake --version
-bash: /usr/bin/cmake: is a directory
Can anyone help me here?
apt-get install cmake
) Did you check whether /usr/bin/cmake/cmake is what you're looking for, which would indicate a badly configured installation, which will in turn be apparent when you detail how you installed it?/usr/bin/cmake/bin/cmake --version
But is there any way such that I always use camke --version to see the version instead of using the full path everytime?