【发布时间】:2018-12-23 08:51:29
【问题描述】:
我正在尝试重现 AIX 上报告的问题。我需要在$HOME 中安装 CMake,因为机器缺少 CMake,而且我不是机器上的管理员。机器是GCC119 on the compile farm。 GCC119 是 ppc64-be,如果重要的话。
我下载了 CMake 3.11 并解压到 $HOME/cmake-3.11/。根据README.rst:
UNIX/Mac OSX/MinGW/MSYS/Cygwin
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^您需要有一个 C++ 编译器(支持 C++11)和一个
make安装。运行您在源代码中找到的bootstrap脚本 CMake 目录。您可以使用--help选项查看 支持的选项。您可以使用--prefix=<install_prefix>为 CMake 指定自定义安装目录的选项。你可以 从 CMake 源目录中运行bootstrap脚本或 您选择的任何其他构建目录。一旦完成 成功运行make和make install。总结::$ ./bootstrap && make && make install
这似乎相当简单:
-bash-4.4$ CXX=g++ ./bootstrap --prefix=$HOME
---------------------------------------------
CMake 3.11.4, Copyright 2000-2018 Kitware, Inc. and Contributors
C compiler on this system is: gcc -pthread
C++ compiler on this system is: g++ -pthread
Makefile processor on this system is: gmake
-bash-4.4$ gmake
gmake: *** No targets specified and no makefile found. Stop.
-bash-4.4$ make
make: *** No targets specified and no makefile found. Stop.
-bash-4.4$ find . -name Makefile
-bash-4.4$ find . -name makefile
-bash-4.4$ find . -name cmake
./Auxiliary/bash-completion/cmake
看起来事情没有成功,但我不确定出了什么问题或如何继续。似乎也没有日志文件:
-bash-4.4$ ls *.log
ls: 0653-341 The file *.log does not exist.
我接下来的步骤是什么?
$ g++ --version
g++ (GCC) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
【问题讨论】:
-
在 S.O. 上很少有 AIX 人。 (但你可能会走运!)。我在toolbox.com 的 AIX 部分看到了很好的答案,并且在 IBM 用户论坛上曾经有很好的支持。在我使用 AIX 的地方,安装任何东西都是一个为期 6 个月的项目,所以我会尝试将自己的解决方案编写为代码 ;-/ 。 YRMV。祝你好运。
-
首先,将选项
--verbose添加到bootstrap