问题
Running Erlang R16B02 (its installed through source and compiled, erl is on path).
Recompile: src/rebar_utils Recompile: src/rebar_xref Uncaught error in rebar_core: {'EXIT', {undef, [{crypto,start,[],[]}, {rebar,run_aux,2, [{file,"src/rebar.erl"},{line,163}]}, {rebar,main,1, [{file,"src/rebar.erl"},{line,58}]}, {erl_eval,do_apply,6, [{file,"erl_eval.erl"},{line,569}]}, {escript,eval_exprs,5, [{file,"escript.erl"},{line,856}]}, {erl_eval,local_func,5, [{file,"erl_eval.erl"},{line,467}]}, {escript,interpret,4, [{file,"escript.erl"},{line,774}]}, {escript,start,1, [{file,"escript.erl"},{line,277}]}]}} make: * [all] Error 1
回答1:
You have to install openssl-devel and recompile erlang.
回答2:
This could be related to the problem with compiling Erlang R16 on RedHat reported in the post on Erlang forum. They propose to compile with:
CFLAGS="-DOPENSSL_NO_EC=1" ./configure && make && sudo make install
来源:https://stackoverflow.com/questions/20166216/rebar-fails-compiling-bulding-from-source-on-r16b02