首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CMAKE - AIX安装

CMAKE - AIX安装
EN

Stack Overflow用户
提问于 2022-01-20 09:50:28
回答 1查看 230关注 0票数 0

我正在与这个CMAKE为Wazuh安装问题战斗,我将感谢您的帮助。

Server info> AIX7.1-技术级别5- Service 8

Issue>服务器未连接到internet。我正在跟踪这个Wazuh documentation> https://documentation.wazuh.com/current/installation-guide/more-installation-alternatives/wazuh-from-sources/wazuh-agent/,所以我自己下载的每个依赖项。

在我执行wazuh ./install.sh脚本之后,我得到这个error>

代码语言:javascript
复制
4- Installing the system

DIR="/var/ossec"

Running the Makefile

grep: can't open /etc/os-release
grep: can't open /etc/redhat-release
/opt/freeware/bin/gmake build_sysinfo build_shared_modules build_syscollector
gmake[1]: Entering directory '/home/myname/wazuh-wazuh-d9bdabd/src'
grep: can't open /etc/os-release
grep: can't open /etc/redhat-release
cd data_provider/ && mkdir -p build && cd build && cmake -DINSTALL_PREFIX=/var/ossec    .. && /opt/freeware/bin/gmake
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
**CMake 3.12.4 or higher is required.  You are running version 3.9.1**

– Configuring incomplete, errors occurred!
gmake[1]: *** [Makefile:1370: build_sysinfo] Error 1
gmake[1]: Leaving directory '/home/myname/wazuh-wazuh-d9bdabd/src'
gmake: *** [Makefile:722: agent] Error 2

Error 0x5.
Building error. Unable to finish the installation.

,所以我需要升级CMAKE,至少升级到3.12.4版

我下载了3.12.4 (也是更高的版本,但问题相同),但我得到了以下错误:

代码语言:javascript
复制
./bootstrap
---------------------------------------------
CMake 3.12.4, Copyright 2000-2018 Kitware, Inc. and Contributors
Found XL toolchain
C compiler on this system is: xlc
---------------------------------------------
Error when bootstrapping CMake:
Cannot find a C++ compiler that supports both C+11 and the specified C+ flags.
Please specify one using environment variable CXX.
The C++ flags are "".
They can be changed using the environment variable CXXFLAGS.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /tmp/test/cmake-3.12.4/Bootstrap.cmk/cmake_bootstrap.log

这里是cmake_bootstrap.log>

代码语言:javascript
复制
xlC: 1501-210 (W) command option t contains an incorrect subargument
"/usr/vacpp/include/unordered_map", line 70.5: 1540-0859 (S) #error directive: To use the unordered map library, macro _IBMCPP_TR1_ must be defined
by user to non zero integer value..
"cmake_bootstrap_11272306_test.cxx", line 7.2: 1540-0859 (S) #error directive: "Compiler is not in a mode aware of C++11.".
Test failed to compile

关于我的compiler>的信息

代码语言:javascript
复制
/usr/vacpp/bin/xlC -qversion

IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72)
Version: 12.01.0000.0000

/usr/vac/bin/xlc -qversion

IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72)
Version: 12.01.0000.0000

lslpp -l | grep "vac.C"; lslpp -l | grep "vacpp.cmp.core"; lslpp -l | grep "xlC.aix*"
vac.C                     12.1.0.0  COMMITTED  IBM XL C Compiler
vac.C                     12.1.0.0  COMMITTED  IBM XL C Compiler
vacpp.cmp.core            12.1.0.0  COMMITTED  IBM XL C/C++ Compiler
vacpp.cmp.core            12.1.0.0  COMMITTED  IBM XL C/C++ Compiler
xlC.aix61.rte             13.1.3.3  COMMITTED  IBM XL C++ Runtime for AIX 6.1

你能帮帮我吗,我现在能做什么,如何安装CMAKE使wazuh安装工程?

EN

回答 1

Stack Overflow用户

发布于 2022-01-24 06:47:12

对此,最简单的解决方案是下载AIX的(wget https://raw.githubusercontent.com/wazuh/wazuh-packages/master/aix/generate_wazuh_packages.sh --no-check-certificate),并使用-e标志:./generate_wazuh_packages.sh -e运行它。此脚本将安装所需的所有依赖项。然后,如果要从源安装,则可以再次运行./install。另一方面,Wazuh有一个预先构建的AIX包:https://documentation.wazuh.com/current/installation-guide/packages-list.html#aix可以使用rpm -i安装。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70784023

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档