After downloading and extracting them, how do I install the CMAKE binary files in Ubuntu 14.04 so that they're recognized with cmake --version
?
Asked
Active
Viewed 1,544 times
1
-
1Can you elaborate on why you need it from cmake.org instead of from Ubuntu? – thomasrutter Jan 09 '18 at 02:50
-
Ubuntu installs V2.8 only, i needed >V3.8 for Nordic nRF5 SDK for mesh. – Anthony Jan 10 '18 at 04:39
1 Answers
1
You have to put your downloaded cmake on your $PATH, either is $HOME/bin or /usr/local/bin (or /opt and add /opt to your path) and then in setting a path put the location of your downloaded cmake first
For example,
PATH=$HOME/bin:$PATH
or
PATH=/usr/local/bin:$PATH
would search and find your downloaded cmake first if it were in $HOME/bin or /usr/local/bin respectively.
If you used PATH=$PATH:$HOME/bin is would use the system cmake first (due to order of directories in $PATH )
Alternately you can use to full path to your cmake, for example
/home/your_user/Downloads/cmake --version
or
$HOME/bin/cmake --version

Panther
- 102,067