[CMake] Install on Ubuntu

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Wed Feb 20 16:26:44 EST 2013


Hi,

/usr/local/bin being before /usr/bin in the path, the cmake located locate
there will be used.
See also:

http://unix.stackexchange.com/questions/8656/usr-bin-vs-usr-local-bin-on-linux


The use of "which" can also be helpful. See
http://unixhelp.ed.ac.uk/CGI/man-cgi?which


Hth
Jc



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

>  Le 20/02/2013 21:35, Jean-Christophe Fillion-Robin a écrit :
>
> 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
>
>  Thanks, I see what you want me to do, but I have another question:
>
> Actually, cmake is in /usr/bin
> If I put my symlink in /usr/local/bin, which version will be used ?
> Is there an order to execute programs in path ? /usr/local/bin before
> /usr/bin ?
>
>
> 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)
> ------------------------------
>



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


More information about the CMake mailing list