How to get the latest cmake from CentOS 6.5

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

I do yum install cmake

, but that gives me 2.6.4 from the underlying repo, which I don't want.

I tried to install cmake28

, but the problem is when I try to do it ./configure

, it throws a cmake error.

+3


source to share


3 answers


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 someone. If you have any problems with this, let me know. Enjoy.



+8


source


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

when you do sudo yum install cmake28

, you get the binary / usr / bin / cmake 28 on your computer. You can set up a symbolic link to make your script configuration work like this:



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

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

+6


source


Ok, after looking at the tutorial that CMake gives on their website, it says download this one and after that you also have the type .. / bootstrap "and then" make "and" make install ".

If you get any errors, type "sudo" in front of all the commands shown. If that doesn't work, your best bet is too logging into the root account by typing "su" followed by the root password.

If you already have cmake installed, you must either follow the steps that cmake suggests on its website , or try the "sudo yum remove cmake" command.

0


source







All Articles