deadtrickster / prometheus_process_collector

Prometheus.io process collector in Erlang
MIT License
52 stars 36 forks source link

mix does not compile prometheas_process_collector 1.4.0 correctly #15

Closed Sebisnow closed 6 years ago

Sebisnow commented 6 years ago

Using Elixirs project management tool mix I get an error make: g++: Command not found make: *** [Makefile:69: prometheus_process_collector_nif.o] Error 127 on compilation.

Here is the build output:

===> Compiling prometheus_process_collector
make: Entering directory '/app/deps/prometheus_process_collector/c_src'
g++ -O3 -finline-functions -fPIC -I /usr/lib/erlang/erts-9.3/include/ -I /usr/lib/erlang/lib/erl_interface-3.10.2/include -std=c++11 -Wall  -c -o prometheus_process_collector_nif.o prometheus_process_collector_nif.cc
make: g++: Command not found
make: *** [Makefile:69: prometheus_process_collector_nif.o] Error 127
make: Leaving directory '/app/deps/prometheus_process_collector/c_src'
===> Hook for compile failed!

==> my_app
** (Mix) Could not compile dependency :prometheus_process_collector, "/root/.mix/rebar3 bare compile --paths "/app/_build/prod/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile prometheus_process_collector", update it with "mix deps.update prometheus_process_collector" or clean it with "mix deps.clean prometheus_process_collector"

This error only occurs since Version 1.4.0 using Elixir 1.7.3 and Erlang/OTP 20

deadtrickster commented 6 years ago

hi, your error has nothing to do with Elixir: make: g++: Command not found

Sebisnow commented 6 years ago

Sure enough! Thank you for your quick reply.