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? ________________________________ From: CMake <cmake-boun...@cmake.org> on behalf of Ian Cullen <ian.james.cul...@gmail.com> Sent: Tuesday, October 30, 2018 2:52 PM To: cmake@cmake.org Subject: Re: [CMake] Installing CMake in Ubuntu Linux from command-line via wget If you want to stick to your original method you need to add some command line arguments to tar to tell it that is is extracting a compressed file. The binary is then available within the extracted directory. Original command becomes: 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 \ && ./bin/cmake --version tar options: x - Extract z - Archive type is gzip (may be optional, depending on version of tar) f - The file to extract (tar will try and open whatever follows this argument so it MUST come last in this case) On 30/10/2018 09:27, Mateusz Loskot wrote: > On Tue, 30 Oct 2018 at 10:22, Osman Zakir <osmanzaki...@hotmail.com> wrote: >> 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: >> >> " >> RUN wget https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.tar.gz \ >> && tar 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 > Hmm, are you cerctain apt-get is capable of installing from .tar.gz? > > 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 > cmake --version > > I guess, it may be a good idea to update https://cmake.org/install/ > > Best regards,, -- 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