I just have installed CMAKE in my ubuntu machine.. So when I do whereis cmake, it gives me the actual pathusername@phx7b02c-ee1b:~/CMAKE/cmake-2.8.11$ whereis cmakecmake: /usr/bin/cmakeBut 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 directoryCan anyone help me here?
/usr/bin/cmake: is a directory. Not able to grab the version of cmake?
linux;ubuntu;cmake
Try the command type instead of whereis for locating executables.$ type -a cmakecmake is /usr/bin/cmake$ /usr/bin/cmake --versioncmake version 2.8.4The command whereis doesn't use your current environment, it looks in several locations that are typically used for executables, such as:excerpt from whereis man pageFILES       /{bin,sbin,etc}       /usr/{lib,bin,old,new,local,games,include,etc,src,man,sbin,                           X386,TeX,g++-include}       /usr/local/{X386,TeX,X11,include,lib,man,etc,bin,games,emacs}