I am running Ubuntu 12.04, which came with Cmake v 2.8.7.
I had need for a more current CMake, so I downloaded the source for 18.104.22.168, built, and installed it per directions. The last step,
make install I ran
./bootstrap make sudo make install
Now I want to run it, but I find that the old version is still invoked when I execute
cmake from the command line:
jdibling@hurricane:/$ cd /; cmake --version; which cmake cmake version 2.8.7 /usr/local/bin/cmake jdibling@hurricane:/$
Odd, I think. So I
su and try it from there:
root@hurricane:~# cd /; cmake --version; which cmake cmake version 22.214.171.124 /usr/local/bin/cmake root@hurricane:/#
which report the same directory, but
cmake --version reports different versions? How can I find where the new
cmake was actually installed?
As suggested, I ran
jdibling@hurricane:/tmp/cmake-126.96.36.199$ type cmake cmake is hashed (/usr/bin/cmake) jdibling@hurricane:/tmp/cmake-188.8.131.52$ sudo su - root@hurricane:~# type cmake cmake is /usr/local/bin/cmake root@hurricane:~#