<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
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? </div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> CMake <cmake-bounces@cmake.org> on behalf of Mateusz Loskot <mateusz@loskot.net><br>
<b>Sent:</b> Tuesday, October 30, 2018 4:37 PM<br>
<b>To:</b> cmake@cmake.org<br>
<b>Subject:</b> Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Tue, 30 Oct 2018 at 12:31, Raymond Wan <rwan.work@gmail.com> wrote:<br>
><br>
> If you insist on the latest version, then where you have<br>
> "apt-get install" should be replaced with commands that<br>
> Mateusz has already said. That is, the steps mentioned here:<br>
><br>
> <a href="https://cmake.org/install/">https://cmake.org/install/</a><br>
<br>
Raymond, the web page explains how to build from sources.<br>
That is the 3rd way of installing CMake.<br>
<br>
1. apt-get install cmake<br>
2. Bash installer or manually unpacking .tar.gz. eg.<br>
cmake-3.12.3-Linux-x86_64.tar.gz<br>
<br>
wget -O cmake-linux.sh<br>
<a href="https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh">https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh</a><br>
sudo sh cmake-linux.sh -- --skip-license --prefix=/usr/local<br>
<br>
3. Build from sources as per <a href="https://cmake.org/install/">https://cmake.org/install/</a><br>
<br>
> (Perhaps the cmake-linux.sh that Mateusz mentioned works...I<br>
> personally haven't installed a version from cmake.org for a<br>
> very long time, so I wouldn't know.)<br>
<br>
I can assure you the option 2. works perfectly<br>
<br>
I use it daily to juggle CMake on number of Linux environments<br>
<br>
<a href="https://github.com/mloskot/wsl-config/blob/master/wsl/scripts/install-cmake-latest.sh">https://github.com/mloskot/wsl-config/blob/master/wsl/scripts/install-cmake-latest.sh</a><br>
<br>
Best regards,<br>
-- <br>
Mateusz Loskot, <a href="http://mateusz.loskot.net">http://mateusz.loskot.net</a><br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">
http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake">https://cmake.org/mailman/listinfo/cmake</a><br>
</div>
</span></font></div>
</body>
</html>