Search code examples
centosarangodb

How to compile ArangoDB 2.8 source in CentOS?


In CentOS I cannot follow the steps given on the ArangoDB official site (https://docs.arangodb.com/3.11/operations/installation/compiling/) to compile ArangoDB source code.

Setup cannot be found in the setup steps.

enter image description here


Solution

  • The mentioned setup step tells you to do:

    make setup
    

    this requires that your system has latest autoconf / automake available - which you probably don't have in CentOS. Older Autoconf / Automake will fail to generate the configure script. The configure switch --enable-maintainer-mode requires that the system is able to run make setup.

    You can now continue in two ways:

    • compile and install latest autofoo and restart with make setup
    • don't use make setup; Flush the changes to your git working copy with git reset --hard. Use export CFLAGS='-O0 -ggdb' and export CXXFLAGS='-O0 -ggdb' to make configure generate debug enabled binaries.

    In general you should add more details to your Stackoverflow questions in terms of what you did, what happened - so people can better help you.