Open eduardomb08 opened 4 years ago
I was able to fix some missing dependencies but I still can't build it all the way. Now I get the following error:
` $ make deps
make[1]: Entering directory '/c/temp/prometheus_rabbitmq_exporter/deps/prometheus_process_collector' /mingw64/bin/gcc -o priv/prometheus_process_collector_drv.so -L "c:/Program Files/erl-23.0.1/lib/erl_interface-4.0/lib" -lei -shared make[2]: [c_src/Makefile.erlang.mk:21: priv/prometheus_process_collector_drv.so] Error 1 make[1]: [Makefile:24: pre-app] Error 2 make[1]: Leaving directory '/c/temp/prometheus_rabbitmq_exporter/deps/prometheus_process_collector' make: *** [erlang.mk:4512: deps] Error 2 `
Attempt to solve #100. I tried building locally to test it but was unable to. After installing MSYS2 on my Win10 laptop with necessary packages I got errors when running "make deps" (see example below)
Crash dump is being written to: erl_crash.dump...done DEP credentials_obfuscation (2.0.0) {"init terminating in do_boot",{undef,[{rmemo,start,[],[]},{erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,680}]},{erl_eval,exprs,5,[{file,"erl_eval.erl"},{line,126}]},{init,start_it,1,[{file,"init.erl"},{line,1137}]},{init,start_em,1,[{file,"init.erl"},{line,1123}]},{init,do_boot,3,[{file,"init.erl"},{line,831}]}]}} init terminating in do_boot ({undef,[{rmemo,start,[],[]},{erl_eval,doapply,6,[{},{_}]},{erleval,exprs,5,[{},{_}]},{init,startit,1,[{},{_}]},{init,startem,1,[{},{_}]},{init,doboot,3,[{},{_}]}
Crash dump is being written to: erl_crash.dump...done make[2]: Entering directory '/c/temp/prometheus_rabbitmq_exporter/deps/rabbitmq_codegen' make[2]: Leaving directory '/c/temp/prometheus_rabbitmq_exporter/deps/rabbitmq_codegen' Error: No Makefile to build dependency /c/temp/prometheus_rabbitmq_exporter/deps/lager. make[1]: [erlang.mk:4512: deps] Error 2 make[1]: Leaving directory '/c/temp/prometheus_rabbitmq_exporter/deps/rabbit_common' make: [erlang.mk:4314: deps] Error 2
And the partial contents of erl_crash.dump: =erl_crash_dump:0.5 Mon Jul 13 15:10:02 2020 Slogan: init terminating in do_boot ({undef,[{rmemo,start,[],[]},{erl_eval,doapply,6,[{},{_}]},{erleval,exprs,5,[{},{_}]},{init,startit,1,[{},{_}]},{init,startem,1,[{},{_}]},{init,doboot,3,[{},{_}]} System version: Erlang/OTP 23 [erts-11.0.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] Compiled: Wed May 20 14:04:00 2020
I also tried the same with an older version or Erlang (10.2) with same/similar error.
PS: It would be nice to have a section somewhere explaining how to build it.