如何重新安装最新的cmake版本? [英] How to reinstall the latest cmake version?

查看:829
本文介绍了如何重新安装最新的cmake版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Linux环境上安装cmake的最新版本.我已经安装了cmake版本3.5,并且某些应用程序不支持该版本.我试图通过卸载当前版本来升级它.但是,当我使用sudo apt-get install cmake重新安装时,我重新安装了相同的版本3.5.如何使用sudo apt-get install ....安装最新版本?

I would like to install cmake the latest version, on Linux environment. I have cmake version 3.5 installed and is not supported by some applications. I tried to upgrade it by uninstalling the current version. But when I reinstall with sudo apt-get install cmake, I get the same version 3.5 re-installed. How do I install the latest version with sudo apt-get install ....?

推荐答案

在有关如何安装最新CMake版本以及发布此问题答案的评论之后:

Following the comments made on how to Install the latest CMake version and to post the answer for this question:

回答:

这取决于您的PC或Mac上当前安装的Ubuntu OS版本.如果您具有以下Ubuntu OS版本,则说明已安装了此CMake,或者可以使用"sudo apt-get install cmake"进行安装和重新安装.即使您卸载了版本并尝试重新安装更高版本.

This depends with Ubuntu OS version currently installed on your PC or Mac. If you have the following Ubuntu OS version then you have this CMake installed or that you could install and reinstall with "sudo apt-get install cmake". Even if you uninstall your version and try to reinstall later version.

Ubuntu 16.04 ships with cmake-3.5.1
Ubuntu 17.10  ships with  cmake-3.9.1  and Ubuntu 18.04 ships with cmake-3.10.2.

现在,如果您已经安装了Ubuntu 16.04,并且想要cmake-3.10,则存在操作系统问题,因为您只能安装并重新安装cmake-3.5.1.要获取cmake-3.10或任何其他版本,您必须从 https://packages.ubuntu下载并安装软件包. com/.找到cmake .targz文件的最新版本后,必须从命令行自行构建.

Now if you have Ubuntu 16.04 installed and you want cmake-3.10, there is OS problem since you can only install and reinstalled cmake-3.5.1. 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.

这篇关于如何重新安装最新的cmake版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆