【问题标题】:How to compile ArangoDB 2.8 source in CentOS?如何在 CentOS 中编译 ArangoDB 2.8 源代码?
【发布时间】:2018-07-08 16:20:57
【问题描述】:

在 CentOS 中,我无法按照 ArangoDB 官方网站 (https://docs.arangodb.com/2.8/Installing/Compiling.html) 上给出的步骤来编译 ArangoDB 源代码。

在设置步骤中找不到设置。

【问题讨论】:

    标签: centos arangodb


    【解决方案1】:

    提到的setup 步骤告诉你这样做:

    make setup
    

    这要求你的系统有最新的 autoconf / automake 可用 - 你在 CentOS 中可能没有。较旧的 Autoconf / Automake 将无法生成配置脚本。配置开关--enable-maintainer-mode要求系统能够运行make setup

    您现在可以通过两种方式继续:

    • 编译并安装最新的 autofoo 并使用 make setup 重新启动
    • 不要使用make setup;使用 git reset --hard 刷新对 git 工作副本的更改。使用export CFLAGS='-O0 -ggdb'export CXXFLAGS='-O0 -ggdb' 使configure 生成启用调试的二进制文件。

    一般来说,您应该在 Stackoverflow 问题中添加更多详细信息,包括您做了什么、发生了什么——这样人们才能更好地帮助您。

    【讨论】:

    • 我没看懂你这句话:“flush the changes to your git working copy with git reset --hard.”。你能说清楚吗?非常感谢
    • 我想在centos arangodb源代码中编译,但是按照网站的步骤做的不成功,能帮我解决这个问题吗?非常感谢!
    • 根据stackoverflow.com/questions/38181816/…,你让它同时工作了吗? git reset 命令将撤消对您的 git clone 所做的所有更改(即由 make setup 所做的更改)
    • 您可以使用以下命令安装所需的 gcc:yum install centos-release-scl-rh devtoolset-3-gcc devtoolset-3-gcc-c++
    • 执行'make setup'后,错误为“make:aclocal:Command not found; make:*** [setup] Error 127
    猜你喜欢
    • 2015-08-25
    • 2015-04-27
    • 1970-01-01
    • 1970-01-01
    • 2014-08-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-26
    相关资源
    最近更新 更多