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

Mateusz Loskot mateusz at loskot.net
Tue Oct 30 09:09:49 EDT 2018


On Tue, 30 Oct 2018 at 13:26, Osman Zakir <osmanzakir90 at hotmail.com> wrote:
>
> I thought I'd already said that I can't use sudo or anything else with root access privileges.

I forgot about this constraint.

Then, make use of the custom --prefix

mkdir $HOME/usr
wget -O cmake-linux.sh
https://cmake.org/files/v3.12/cmake-3.12.3-Linux-x86_64.sh
sh cmake-linux.sh -- --skip-license --prefix=$HOME/usr
export PATH=$HOME/usr/bin:$PATH

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list