问题描述
我以前在Ubuntu上使用 apt-安装了
和 cmake
和 ccmake
版本2.8.7。获取cmake apt-获取cmake-curses-gui
。这是apt-get可用的最新版本。
I previously installed cmake
and ccmake
version 2.8.7 on Ubuntu using apt-get cmake
and apt-get cmake-curses-gui
. This is the most recent version available from apt-get.
我现在需要将两者都更新为3.1.1,并希望从源代码上进行。我下载/配置/构建/安装了 cmake
的源代码。 cmake
已更新,但 ccmake
未更新:
I now need to update both to 3.1.1, and would like to do it from source. I downloaded/configured/built/installed the source code for cmake
. cmake
has updated, but ccmake
has not:
$ cmake -- version
cmake version 3.1.1
$ ccmake --version
ccmake version 2.8.7
我需要做什么来更新 ccmake
?
更新:
如果我先 apt-get remove cmake
,然后 ccmake --version
却没有出现此类文件错误。
If I first apt-get remove cmake
then ccmake --version
gives me a no such file error.
注意:我已经找到了许多有关在Ubuntu [1]上安装cmake vs ccmake的问题,但是我还没有找到一个考虑从源代码构建时应该做什么的问题。
Note: I've found a number of questions about cmake vs ccmake installation on Ubuntu [1], but I haven't found one that considers what to do when building from source.
[1]
推荐答案
我最终找到了线程[1],它解决了我的问题。我需要采取的步骤是:
I eventually found thread [1], which solved my problem. The steps I needed to take were:
- 安装libncurses5-dev
- 重新配置/编译/安装cmake
- 重新启动外壳程序(最初它可用,但是外壳程序找不到)
[1]
这篇关于从源代码构建时在Ubuntu上更新ccmake?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!