cmake更新,找不到版本

cmake update, version not found

我想将我的 cmake 更新到特定版本,但无法识别该版本。我目前是 运行 2.8.7,想升级到 2.8.11。 (我也尝试更新到最新版本,3.3.1,但得到的结果与下面相同)。

   cd /usr/bin
   sudo apt-get install cmake=2.8.11
[sudo] password: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version ‘2.8.11’ for ‘cmake’ was not found

我尝试在 pwd=/usr/bin 中更新 a previous suggestion,但没有帮助。

我想我可以download from source,但我想知道我目前的做法有什么问题。

(顺便说一下,2.8.11 是安装 speedcrunch 计算器的最低要求 >> https://bitbucket.org/heldercorreia/speedcrunch/

apt-cache show cmake 将显示哪些版本可以安装在您的系统上。

如果所需版本不可用,请检查 packages.debian.org packages.ubuntu.org 等网站,看看该版本是否在您的发行版的较新版本中可用。

我假设您有 Ubuntu 12.04 LTS。请尝试添加以下 ppa 并像这样进行更新:

sudo add-apt-repository ppa:smspillaz/cmake-2.8.12
sudo apt-get update
sudo apt-get install cmake

并检查版本:

cmake --version

希望对您有所帮助。

通过 PPA 安装(升级到 3.2)

sudo apt-get install software-properties-common

sudo add-apt-repository ppa:george-edison55/cmake-3.x

sudo apt-get 更新

未安装cmake时:

sudo apt-get 安装 cmake

已安装cmake时:

sudo apt-get 升级

here

下载 CMake

在您的环境中添加 CMake,macos:PATH="/Applications/CMake.app/Contents/bin":"$PATH"

检查CMake是否安装正确:

cmake --version

https://questnr.com/post/brijeshlakkad_cmake-installati-module-is-a-2628938723241034495-63014