basho-labs/riak-chef-cookbook

Riak source install won't build on CentOS 6.5

Closed this issue · 10 comments

For some reason building Erlang R16B02 from source doesn't pick up OpenSSL. Riak cannot be built from source without OpenSSL support in Erlang:

 ---- Begin output of make clean locked-deps all rel ----
 STDOUT: ./rebar clean
 Uncaught error in rebar_core: {'EXIT',
                         {undef,
                          [{crypto,start,[],[]},
                           {rebar,run_aux,2,[]},
                           {rebar,main,1,[]},
                           {escript,run,2,
                            [{file,"escript.erl"},{line,747}]},
                           {escript,start,1,
                            [{file,"escript.erl"},{line,277}]},
                           {init,start_it,1,[]},
                           {init,start_em,1,[]}]}}

 =ERROR REPORT==== 6-Feb-2014::16:48:26 ===
 Unable to load crypto library. Failed with error:
 "load_failed, Failed to load NIF library: '/usr/local/lib/erlang/lib/crypto-3.1/priv/lib/crypto.so: undefined symbol: EC_GROUP_new_curve_GF2m'"

(This failure occurs with Riak 2.0 and the 2.0 branch of this cookbook.)

Is this with the latest and greatest centos 6 updates?

This was with an updated CentOS 6.5 install. Build flags are: --disable-hipe --enable-smp-support --without-odbc --enable-m64-build

I ran this through test-kitchen just last night, source-centos-65, and it seems to build just fine.

@cheeseplus Using the 2.0 branch? Mine fails the same way. I even re-downloaded the CentOS 6.5 base box.

@hectcastro Ignore my "it works" I was testing against 1.4.8 and just didn't see the 2.0 tag on the issue.

Oh, I missed the obvious, are you using our build of 16b02?

Fixed in ac815bc.

Thanks to @jaredmorrow and @Vagabond.

reproduced on amazon linux

@mogadanez fwiw - Amazon Linux != CentOS/RHEL 6.5

They are just close enough that packages work but if you can provide some detail or logs that would be helpful.


[2015-06-09T18:53:33+00:00] ERROR: execute[riak-src-build] (riak::source line 92) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
---- Begin output of make clean locked-deps all rel ----
STDOUT: ./rebar clean
Uncaught error in rebar_core: {'EXIT',
{undef,
[{crypto,start,[],[]},
{rebar,run_aux,2,[]},
{rebar,main,1,[]},
{escript,run,2,
[{file,"escript.erl"},{line,747}]},
{escript,start,1,
[{file,"escript.erl"},{line,277}]},
{init,start_it,1,[]},
{init,start_em,1,[]}]}}

=ERROR REPORT==== 9-Jun-2015::18:53:33 ===
Unable to load crypto library. Failed with error:
"load_failed, Failed to load NIF library: '/usr/local/lib/erlang/lib/crypto-3.1/priv/lib/crypto.so: undefined symbol: EC_GROUP_new_curve_GF2m'"
OpenSSL might not be installed on this system.
STDERR: fatal: Not a git repository (or any of the parent directories): .git
make: *** [clean] Error 1
---- End output of make clean locked-deps all rel ----