<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 thought I'd already said that I can't use sudo or anything else with root access privileges.  I want to deploy the Docker image to Heroku and Heroku doesn't run Docker images with root user access.</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
I'll forget about "apt-get", but I still want to put CMake into /usr/local/ somewhere without using root user access, if that's possible.  </div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
How do I find out in the Docker image where the CMake files were unpacked to so I can add that path to the PATH variable?  Since I used wget like with Boost, and Boost was installed in /usr/local/boost_1_68_0 (and Boost with its build tool was also installed
 /usr/local/ itself), it's possible that CMake's path is something similar.  </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 5:09 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:59, Osman Zakir <osmanzakir90@hotmail.com> wrote:<br>
><br>
> 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?<br>
<br>
No!<br>
The .tar.gz is not a .deb package, it does not contain a .deb package.<br>
<br>
You need to read about apt and .deb packages<br>
<br>
> What do I have to do in order for it to install the CMake executable I downloaded<br>
<br>
Unpack the .tar.gz, that's it.<br>
Optionally, copy somewhere you prefer in your Linux environment.<br>
<br>
> and also add it to my PATH?<br>
<br>
export PATH=/path/where/you/unpacked/cmaketarg/bin:$PATH<br>
<br>
<br>
Alternatively,<br>
iIf you stopped stubbornly trying the apt-get and<br>
if you tried my suggestion<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>
you would get CMake installed in the standard prefix /usr/local<br>
with cmake executable deployed in /usr/local/bin/cmake<br>
and having /usr/local/bin typically in PATH<br>
you would get cmake in your PATH out of the box.<br>
<br>
Just forget about using apt-get with the downloaded .tar.gz, forget it!<br>
Or, learn about Debian packages, apt, etc. just not here!<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>