I'm trying to get and build the latest cmake (because I want to look at tutorial and examples). I have cmake 2.6 already in my path from the Ubuntu Synaptic Package Manager. I can build it and install it ok, Linux still uses the old 2.6. If I do a sudo cmake -version, it finds the latest 2.8. How do I install it right? Maybe I uninstall 2.6 using the Snaptic Package Manager? Below are my steps:
Thanks,
Paul
Downloaded cmake 2.8.1 from
http://www.cmake.org/cmake/resources/software.html
./bootstrap; make; make install
The install failed, so did...
sudo make install
It seemed to work, but...
user@ubuntu:~/cmake-2.8.1$ cmake --version
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/bin
Segmentation fault
If try as root, it works...
found
http://ubuntuforums.org/showthread.p...ght=CMAKE_ROOT
found
http://www.linuxquestions.org/questi...s-user-800222/
user@ubuntu:~/cmake-2.8.1$ sudo cmake --version
[sudo] password for user:
cmake version 2.8.1
Tried...
user@ubuntu:~/cmake-2.8.1$ export CMAKE_ROOT=/usr/local/share/cmake-2.8
user@ubuntu:~/cmake-2.8.1$ ls /usr/local/share/cmake-2.8
include Modules Templates
user@ubuntu:~/cmake-2.8.1$ cmake --version
cmake version 2.6-patch 4
This is the version of cmake installed using Ubuntu Synaptic Package Manager.