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.

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.

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.
________________________________
From: CMake <cmake-boun...@cmake.org> on behalf of Mateusz Loskot 
<mate...@loskot.net>
Sent: Tuesday, October 30, 2018 5:09 PM
To: cmake@cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

On Tue, 30 Oct 2018 at 12:59, Osman Zakir <osmanzaki...@hotmail.com> wrote:
>
> 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?

No!
The .tar.gz is not a .deb package, it does not contain a .deb package.

You need to read about apt and .deb packages

> What do I have to do in order for it to install the CMake executable I 
> downloaded

Unpack the .tar.gz, that's it.
Optionally, copy somewhere you prefer in your Linux environment.

> and also add it to my PATH?

export PATH=/path/where/you/unpacked/cmaketarg/bin:$PATH


Alternatively,
iIf you stopped stubbornly trying the apt-get and
if you tried my suggestion

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

you would get CMake installed in the standard prefix /usr/local
with cmake executable deployed in /usr/local/bin/cmake
and having /usr/local/bin typically in PATH
you would get cmake in your PATH out of the box.

Just forget about using apt-get with the downloaded .tar.gz, forget it!
Or, learn about Debian packages, apt, etc. just not here!

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
-- 

Powered by 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

Reply via email to