How to get latest cmake version from CentOS 6.5
Asked Answered
G

3

9

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.

Gametophore answered 16/8, 2014 at 8:19 Comment(0)
D
11

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.

Desecrate answered 12/8, 2017 at 7:18 Comment(1)
Elaborate your answer please.Buatti
D
8

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.

Dramshop answered 26/2, 2015 at 21:4 Comment(1)
for me, this is the correct answer, but, in My system is the cmake3, so I make the same # ln -s /usr/bin/cmake3 /usr/bin/cmake. Another apart is that before I can create the Link I needed to remove the old cmake, but instead of removing I renamed it to cmake_oldMicrogamete
P
1

Well, after looking at the tutorial CMake gives on their website, it says download this and after that you have too type "./bootstrap" followed by "make" and "make install".

If you get any errors type "sudo" in front of all the said commands. If that doesn't work, your best bet would be too login to the root account by typing "su" and the root password following that.

If you already have cmake installed you should either follow the steps cmake offers on their website or try the command "sudo yum remove cmake".

Performative answered 17/8, 2014 at 9:45 Comment(2)
I'm getting bash: cmake: command not found after following the steps ./bootstrap make make installGametophore
@PassionateDeveloper Make sure you have the GNU C++ compiler installed on your machine. You can install it with the command written INSIDE the parenthesis, not the parenthesis itself, (sudo yum group install "Development Tools")Performative

© 2022 - 2024 — McMap. All rights reserved.