CMAKE 3 binary package for PRECISE
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.
CMake 3.2.2 is available for Precise in this PPA:
ppa:george-edison55/precise-backports (Click here for instructions on using PPAs.)
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
CMake 3.3.2, currently the newest version, is available in this PPA:
https://launchpad.net/~roblib/+archive/ubuntu/ppa