[CMake] Install on Ubuntu

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Wed Feb 20 15:35:59 EST 2013


Hi Alain,

Instead, in a terminal you could simply do the following:

 cd && mkdir Support && cd Support && \
 wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Linux-i386.tar.gz && \
 tar -xzvf cmake-2.8.10.2-Linux-i386.tar.gz && \
./cmake-2.8.10.2-Linux-i386/bin/cmake -version

This will create a directory named "Support" in your home folder, download
and extract CMake 2.8.10. Finally it invokes cmake with the "-version"
param to check that cmake run.

You can then create symlinks into your /usr/local/bin folder to ensure you
could simply call cmake, ctest, ...  without having to specify the full
path.

sudo ln -s ~/Support/cmake-2.8.10.2-Linux-i386/bin/cmake
/usr/local/bin/cmake && \
sudo ln -s
~/Support/cmake-2.8.10.2-Linux-i386/bin/ccmake /usr/local/bin/ccmake && \
sudo ln -s
~/Support/cmake-2.8.10.2-Linux-i386/bin/cpack /usr/local/bin/cpack && \
sudo ln -s
~/Support/cmake-2.8.10.2-Linux-i386/bin/ctest /usr/local/bin/ctest

Hth
Jc


On Wed, Feb 20, 2013 at 3:09 PM, Alain Aupeix <alain.aupeix at wanadoo.fr>wrote:

>  Hi, I have Ubuntu 12.04, and I have already cmake installed (2.8.7)
>
> To compile the last version of Sigil, I need 2.8.9 or higher, so I tried
> to install it.
> Unfortunately, the sh file just allows to install directly under Downloads
> folder or under Downloads/cmake..... (depending of the answer to question)
> I tried then the tared version, but all the folder doesn't already exists
> now (help, for example) or aren't located the same way that the others.
>
> I ought to install the same way that the previous version (/usr/bin,
> /usr/share/.....)
>
> I have run ./configure
> then I have run make
> But now, I don't know how to do the install command:
>
> sudo make install /usr    ???
>
> Thanks
> A+
>  --
> ------------------------------
> Alain Aupeix
> http://jujuland.pagesperso-orange.fr/
> http://pissobi-lacassagne.pagesperso-orange.fr/
> ------------------------------
> U.buntu 12.04 | G.ramps 3.5.0-0.SVN20055 | H.arbour 3.2.0dev (Rev 18833) |
> HbIDE (Rev.168)
> ------------------------------
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130220/c6cdecbe/attachment.htm>


More information about the CMake mailing list