简体   繁体   English

如何从CentOS 6.5获得最新的cmake版本

[英]How to get latest cmake version from CentOS 6.5

Is there a good way to install latest cmake version from CentOS 6.5? 有没有一种从CentOS 6.5安装最新cmake版本的好方法?

I'm doing yum install cmake but it's giving me 2.6.4 from base repo which I don't want. 我正在做yum install cmake但是它给了我2.6.4来自我不想要的基础仓库。

I tried installing cmake28 but the problem is that when I try to do ./configure it throws an error saying cmake is not available. 我尝试安装cmake28但问题是,当我尝试./configure它会抛出一个错误,说cmake不可用。

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. 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希望这会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帮助致某人。 If you have any problems with it let me know. 如果您有任何问题,请告诉我。 Have fun. 玩得开心。

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. 当你sudo yum install cmake28 ,你的机器上会得到一个/ usr / bin / cmake28二进制文件。 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. 不确定为什么cmake28包不能为你做这个。

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". 好吧,看完CMake在他们的网站上给出的教程后,它说下载了这个 ,之后你也输入了“./bootstrap”,接着是“make”和“make install”。

If you get any errors type "sudo" in front of all the said commands. 如果您收到任何错误,请在所有上述命令前键入“sudo”。 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. 如果这不起作用,最好的选择是通过键入“su”和后面的root密码登录到root帐户。

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". 如果您已经安装了cmake,则应该按照cmake 在其网站上提供的步骤操作,或者尝试命令“sudo yum remove cmake”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM