<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<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;">
Like if I cd into the CMake bin directory and then add the relative path to the current directory to the 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> Osman Zakir <osmanzakir90@hotmail.com><br>
<b>Sent:</b> Tuesday, October 30, 2018 6:01 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>
<meta content="text/html; charset=utf-8">
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
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?</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> CMake <cmake-bounces@cmake.org> on behalf of Roger Leigh <rleigh@codelibre.net><br>
<b>Sent:</b> Tuesday, October 30, 2018 5:54 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="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">On 30/10/2018 10:56, Osman Zakir wrote:<br>
> Okay, thanks.<br>
> <br>
> So how about this as the command?<br>
> <br>
> "<br>
> RUN wget <a href="https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz">
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz</a>  \<br>
>      && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz  \​<br>
>      && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz  \​<br>
>      && cd cmake-3.12.3-Linux-x86_64  \​<br>
>      && apt-get install \​<br>
>      && ./bin/cmake --version<br>
> "<br>
> I think I'll need the apt-get install part to install the library.  Is <br>
> this true?<br>
<br>
No.  Just add the bin directory to your PATH.<br>
<br>
apt-get is only required when installing packages provided by the <br>
package manager.  It has nothing to do with installing archives you <br>
download.<br>
<br>
<br>
Roger<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>
</div>
</body>
</html>