Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get latest cmake version from CentOS 6.5

Is there a good way to install latest cmake version from CentOS 6.5?

I'm doing yum install cmake but it's giving me 2.6.4 from base repo which I don't want.

I tried installing cmake28 but the problem is that when I try to do ./configure it throws an error saying cmake is not available.

like image 333
Passionate Engineer Avatar asked Aug 16 '14 08:08

Passionate Engineer


People also ask

How do I install the latest version of CMake in Linux?

To get cmake-3.10 or any other version, you have to download and install the package from https://packages.ubuntu.com/. Once you find the latest version of cmake . targz files, you have to build it yourself from the command line. @ZINATAKLIT, Just run "sudo apt-get install cmake".

How do I know if CMake is installed?

You can check your CMake version by using the command cmake --version. cmake version 3.11.


2 Answers

I know this is an ancient question, but I got here by google searching and wanted to share what I knew so far.

when you sudo yum install cmake28, you get a /usr/bin/cmake28 binary on your machine. You can setup a symlink to make your configure script work via the following:

sudo ln -s /usr/bin/cmake28 /usr/bin/cmake

Not sure why the cmake28 package doesn't do this for you.

like image 179
user35788 Avatar answered Oct 31 '22 13:10

user35788


rpm -Uv ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/Application:/Geo/CentOS_6/x86_64/cmake-3.0.0-143.1.x86_64.rpm Hope this helps to somebody. If you have any problems with it let me know. Have fun.

like image 41
darkness Avatar answered Oct 31 '22 14:10

darkness