cmake 2.8.9 on Ubuntu 10.04
I have installed cmake
using apt-get
and the "latest" version is 2.8.0.
But when I try to used, my project requires cmake
version 2.8.9.
I try to update but without any success using apt-get
.
How can I get cmake
2.8.9 on Ubuntu 10.04
open your terminal with ctrl+alt+t and then type as
wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Linux-i386.sh
chmod +x cmake-2.8.10.2-Linux-i386.sh
./cmake-2.8.10.2-Linux-i386.sh
Hope that helps.
The Ubuntu/Debian way for building from source :
sudo aptitude install devscripts
dget -x -u http://archive.ubuntu.com/ubuntu/pool/main/c/cmake/cmake_2.8.12.2-0ubuntu3.dsc
sudo aptitude build-dep cmake
cd cmake* && fakeroot dpkg-buildpackage -d
sudo dpkg -i ../cmake*deb
This will create a local backport and install it. Substitute almost any other package that has a newer DSC available.
You can try this:
cd ~/Downloads/
wget http://www.cmake.org/files/v2.8/cmake-2.8.10.tar.gz
tar xzvf cmake-2.8.10.tar.gz
cd cmake-2.8.10
./configure
make -j4
sudo make install
This works for me on Ubuntu 12.04. I had to close and reopen my terminal to see the version change.
cmake --version
cmake version 2.8.10
You have to compile cmake
yourself or can can update your Ubuntu 10.04 LTS (to Ubuntu 12.04 LTS and then) to Ubuntu 12.10, which is the recommended method because the support for 10.04 (desktop) ends in April 2013.