Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
3  
cmake 2.8.9 is available in the official repos for Ubuntu 12.10. You should consider upgrade your system. –  Eric Carvalho Mar 4 '13 at 12:42

3 Answers 3

up vote 1 down vote accepted

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.

share|improve this answer
2  
Actualy cmake version in Ubuntu 12.04 is 2.8.7, he should upgrade to Ubuntu 12.10. –  Eric Carvalho Mar 4 '13 at 12:45
    
@EricCarvalho yes, you are right. –  BuZZ-dEE Mar 4 '13 at 12:48

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.

share|improve this answer
    
when I have the folder with cmake what I have to do? This script doesn't install cmake...Thanks –  G M Apr 3 at 11:20
    
give me ls of that –  AgentCool Apr 3 at 13:58
    
user@user-NC10:~/cmake-2.8.10.2-Linux-i386$ ls bin cmake-2.8.10.2-Linux-i386.sh doc man share thanks for the help! –  G M Apr 3 at 14:04
    
and the installation log please –  AgentCool Apr 3 at 15:50
    
By default the CMake will be installed in: "/home/giacomo/cmake-2.8.10.2-Linux-i386/cmake-2.8.10.2-Linux-i386" Do you want to include the subdirectory cmake-2.8.10.2-Linux-i386? Saying no will install in: "/home/giacomo/cmake-2.8.10.2-Linux-i386" [Yn]: Y Using target directory: /home/giacomo/cmake-2.8.10.2-Linux-i386/cmake-2.8.10.2-Linux-i386 Extracting, please wait... Unpacking finished successfully –  G M Apr 3 at 18:30

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.

share|improve this answer
    
cmake_2.8.9-0ubuntu1.dsc: dscverify: cmake_2.8.9-0ubuntu1.dsc failed signature check: gpg: Signature made Thu 16 Aug 2012 11:52:34 AM CEST using DSA key ID DD4D5088 gpg: Can't check signature: public key not found Validation FAILED!! How to solve this? I thought it was a Ubuntu package? –  Peterdk Mar 11 at 17:23
    
Solution to that error: add -u to dget command. –  Peterdk Mar 11 at 17:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.