<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;">
So I have to do "ENV <span style="display: inline !important; font-family: "Segoe UI","Segoe UI Web (West European)","Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",sans-serif; font-size: 14.66px; font-size-adjust: none; font-stretch: 100%">export
PATH=$HOME/usr/bin:$PATH"? Is that what you mean?</span></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 Roger Leigh <rleigh@codelibre.net><br>
<b>Sent:</b> Tuesday, October 30, 2018 8:46 PM<br>
<b>To:</b> cmake@cmake.org<br>
<b>Subject:</b> Re: [CMake] Docker container can't find cmake executable</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On 30/10/2018 15:41, Osman Zakir wrote:<br>
> I put this command in the Dockerfile:<br>
> "<br>
> RUN mkdir $HOME/usr \<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>
> && sh cmake-linux.sh -- --skip-license --prefix=$HOME/usr \<br>
> && cd $HOME/usr \<br>
> && ls \<br>
> && export PATH=$HOME/usr/bin:$PATH<br>
> "<br>
> But when it gets to running CMake, it can't find the executable. Please <br>
> help.<br>
<br>
This is a docker question, nothing to do with cmake. You need to use <br>
the ENV directive, not RUN. The export you have here has no effect <br>
after the command finishes.<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>
</body>
</html>