<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;">
Okay, thanks. </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;">
So how about this as the command?</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;">
"</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
<span>RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz \<br>
</span>
<div> && tar xzf cmake-3.12.3-Linux-x86_64.tar.gz \</div>
<div> && rm -rf cmake-3.12.3-Linux-x86_64.tar.gz \</div>
<div> && cd cmake-3.12.3-Linux-x86_64 \</div>
<div> && apt-get install \</div>
<span> && ./bin/cmake --version</span></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
"</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif; font-size: 12pt;">
I think I'll need the apt-get install part to install the library. Is this true?</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 Ian Cullen <ian.james.cullen@gmail.com><br>
<b>Sent:</b> Tuesday, October 30, 2018 2:52 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">If you want to stick to your original method you need to add some
<br>
command line arguments to tar to tell it that is is extracting a <br>
compressed file.<br>
<br>
The binary is then available within the extracted directory.<br>
<br>
Original command becomes:<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>
&& ./bin/cmake --version<br>
<br>
<br>
tar options:<br>
x - Extract<br>
z - Archive type is gzip (may be optional, depending on version of tar)<br>
f - The file to extract (tar will try and open whatever follows this <br>
argument so it MUST come last in this case)<br>
<br>
<br>
<br>
On 30/10/2018 09:27, Mateusz Loskot wrote:<br>
> On Tue, 30 Oct 2018 at 10:22, Osman Zakir <osmanzakir90@hotmail.com> wrote:<br>
>> I want to install the latest release version of CMake in my Ubuntu Docker image (from the Dockerfile), but I'm having trouble. I have this 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 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>
> Hmm, are you cerctain apt-get is capable of installing from .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>
> cmake --version<br>
><br>
> I guess, it may be a good idea to update <a href="https://cmake.org/install/">https://cmake.org/install/</a><br>
><br>
> Best regards,,<br>
<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>