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

Osman Zakir osmanzakir90 at hotmail.com
Tue Oct 30 09:02:34 EDT 2018


Like if I cd into the CMake bin directory and then add the relative path to the current directory to the PATH.
________________________________
From: Osman Zakir <osmanzakir90 at hotmail.com>
Sent: Tuesday, October 30, 2018 6:01 PM
To: cmake at cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

Would it be okay to add the relative path to the current directory to the PATH variable if I don't know the exact path?  Or would that not be a good idea?
________________________________
From: CMake <cmake-bounces at cmake.org> on behalf of Roger Leigh <rleigh at codelibre.net>
Sent: Tuesday, October 30, 2018 5:54 PM
To: cmake at cmake.org
Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget

On 30/10/2018 10:56, Osman Zakir wrote:
> Okay, thanks.
>
> So how about this as the command?
>
> "
> RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz  \
>      && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>      && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​
>      && cd cmake-3.12.3-Linux-x86_64  \​
>      && apt-get install \​
>      && ./bin/cmake --version
> "
> I think I'll need the apt-get install part to install the library.  Is
> this true?

No.  Just add the bin directory to your PATH.

apt-get is only required when installing packages provided by the
package manager.  It has nothing to do with installing archives you
download.


Roger
--

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/37254235/attachment-0001.html>


More information about the CMake mailing list