[CMake] Installing CMake in Ubuntu Linux from command-line via wget

Osman Zakir osmanzakir90 at hotmail.com
Tue Oct 30 07:59:39 EDT 2018


I put "apt-get install" in the CMake folder that I got from unpacking the .tar file.  Would that not install the CMake in that directory?  That's what I'm asking.  What do I have to do in order for it to install the CMake executable I downloaded and also add it to my PATH?
________________________________
From: CMake <cmake-bounces at cmake.org> on behalf of Mateusz Loskot <mateusz at loskot.net>
Sent: Tuesday, October 30, 2018 4:37 PM
To: cmake at cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

On Tue, 30 Oct 2018 at 12:31, Raymond Wan <rwan.work at gmail.com> wrote:
>
> If you insist on the latest version, then where you have
> "apt-get install" should be replaced with commands that
> Mateusz has already said.  That is, the steps mentioned here:
>
> https://cmake.org/install/

Raymond, the web page explains how to build from sources.
That is the 3rd way of installing CMake.

1. apt-get install cmake
2. Bash installer or manually unpacking .tar.gz. eg.
cmake-3.12.3-Linux-x86_64.tar.gz

wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local

3. Build from sources as per https://cmake.org/install/

> (Perhaps the cmake-linux.sh that Mateusz mentioned works...I
> personally haven't installed a version from cmake.org for a
> very long time, so I wouldn't know.)

I can assure you the option 2. works perfectly

I use it daily to juggle CMake on number of Linux environments

https://github.com/mloskot/wsl-config/blob/master/wsl/scripts/install-cmake-latest.sh

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
--

Powered by www.kitware.com<http://www.kitware.com>

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181030/d3ea75df/attachment.html>


More information about the CMake mailing list