7

Does anyone know where this package would be available? I am looking to use it on Travis-CI so building from sources takes too long and is not an option.

a dpkg would suffice if you know where to find it.

Carneiro
  • 173

4 Answers4

6

CMake 3.2.2 is available for Precise in this PPA:

ppa:george-edison55/precise-backports Launchpad logo (Click here for instructions on using PPAs.)

Nathan Osman
  • 32,155
4

The question is a bit dated and there are now version 3.2. Therefore, I refer in my response to the latest version. The individual steps are also for version 3.1, it must be replaced only the filename. The Linux way: A folder is also a file ;)


Create a temporary folder

mkdir ~/cmake_tmp

Download the latest version here:

  • 64-bit

    cd ~/cmake_tmp
    wget http://www.cmake.org/files/v3.2/cmake-3.2.2-Linux-x86_64.tar.gz
    
  • 32-bit

    cd ~/cmake_tmp
    wget http://www.cmake.org/files/v3.2/cmake-3.2.2-Linux-i386.tar.gz
    

The following steps use the 64-bit version

Now install with:

tar xf cmake-3.2.2-Linux-x86_64.tar.gz

At last copy the files for a parallel installation, in addition to an other version in /usr with:

sudo cp -r cmake-3.2.2-Linux-x86_64/* /usr/local
  • You can use the binary

To overwrite the files in /usr, use this command:

sudo cp -r cmake-3.2.2-Linux-x86_64/* /usr

The use of the script is unnecessary as this only creates a directory with the content, which is also contained in the archive.

Housekeeping:

rm -f ~/cmake_tmp

How do I use which version?

If you have copied cmake-3.2.2-Linux-x86_64/* in the local folder /usr/local then you can decide which binary you want to use. Depending on the content of $PATH:

  • My example:

    % echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    

a specific binary is used. In my case the binary in /usr/local/bin. To use the binary in usr/bin, I have to specify the complete path, eg.:

/usr/bin/cmake
A.B.
  • 90,397
  • Upvoted this because I put me on the right track.

    For the record CMake also provides an installation script next to the archive that makes these steps even simpler. Just call it with --skip-license --prefix=/usr and it works wonders.

    – ereOn Jun 14 '15 at 15:17
1

CMake 3.3.2, currently the newest version, is available in this PPA:

https://launchpad.net/~roblib/+archive/ubuntu/ppa

SpamBot
  • 151
  • 4
-1

You could download them from cake. com and extract them from the mouse menu, and follow the inot all ation file, and you could use these command to install it enter in the terminal this:

  sudo su <the sh files>

Or this.

  jhbuild <the installation file>

and this After any of the others.

  make <the cake installation file>

and to install jhbuild type this in.

  sudo apt-get install jhbuild

and after one of three upper type this in.

  make

and it might work fine this way.

Michael
  • 2,499
  • 5
  • 19
  • 24