silviucpp/erlcass

rebar compile breaks

Closed this issue · 1 comments

Not able to compile on Debian bullseye x86_64

~/data/erlcass$ ./rebar3 compile
===> Fetching rebar3_hex v7.0.7
===> Fetching hex_core v0.8.4
===> Fetching verl v1.1.1
===> Analyzing applications...
===> Compiling hex_core
===> Compiling verl
===> Compiling rebar3_hex
===> Verifying dependencies...
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Your system debian is not supported
~/data/erlcass/_build/deps ~/data/erlcass
Cloning into 'cpp-driver'...
Note: switching to '90df2c9ca1aa184a746445698533c71f7f34a2e1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

~/data/erlcass
~/data/erlcass/_build/deps/cpp-driver/build ~/data/erlcass
./build_deps.sh: line 98: cmake: command not found
make[1]: Entering directory '/home/pankaj/data/erlcass/_build/deps/cpp-driver/build'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory '/home/pankaj/data/erlcass/_build/deps/cpp-driver/build'
~/data/erlcass
make[1]: Entering directory '/home/pankaj/data/erlcass/c_src'
 CPP    nif_cass_uuid.cc
 CPP    nif_utils.cc
 CPP    erlcass.cc
 CPP    nif_cass_prepared.cc
 CPP    constants.cc
 CPP    nif_cass_session.cc
 CPP    fun_bindings.cc
In file included from /home/pankaj/data/erlcass/_build/deps/cpp-driver/src/logger.hpp:22,
                 from /home/pankaj/data/erlcass/c_src/nif_cass_session.cc:8:
/home/pankaj/data/erlcass/_build/deps/cpp-driver/src/string.hpp:21:10: fatal error: driver_config.hpp: No such file or directory
   21 | #include "driver_config.hpp"
      |          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [nif.mk:84: /home/pankaj/data/erlcass/c_src/nif_cass_session.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/pankaj/data/erlcass/c_src'
make: *** [Makefile:44: nif_compile] Error 2
===> Hook for compile failed!

I thought this was launched on a base image with dependencies, already installed which were missing. Those coming here

apt-get -yq install git curl wget gcc g++ make autoconf automake libexpat1-dev openssl libssl-dev zlib1g-dev libpam0g-dev libyaml-dev libsasl2-dev liblz4-dev libzstd-dev make libyaml-dev build-essential libncurses5-dev libgd-dev libwebp-dev fop xsltproc unixodbc-dev rapidjson-dev libpthread-stubs0-dev cmake