This question is different to the other Erlang crypto failure question posted as the environment is not Windows, the openssl and libssl-dev prerequisites were installed in the standard way. The issue is identified at source within Erlang, rather than a Riak issue, although it is related.
Installing Erlang 16B02 as a prerequisite for Raik 2.1.1 on Ubuntu 14.04 LTS x64.
Erlang was downloaded and installed as per the riak guide to installing erlang: http://docs.basho.com/riak/latest/ops/building/installing/erlang/
Prequisites installed before Erlang (including openssl and libssl-dev). Build worked fine, erlang shell opens fine.
Riak downloads fine but $ make rel fails with error as follows:-
fatal: Not a git repository (or any of the parent directories): .git
Using rebar.config.lock file to fetch dependencies
./rebar -C rebar.config.lock get-deps
Uncaught error in rebar_core:
{'EXIT',
{undef,
[{crypto,start,[],[]},
{rebar,run_aux,2,
[{file,"src/rebar.erl"},{line,212}]},
{rebar,main,1,
[{file,"src/rebar.erl"},{line,58}]},
{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==== 11-Aug-2015::14:42:28 ===
Loading of /usr/local/lib/erlang/lib/crypto-3.1/ebin/crypto.beam failed: badfile
make: *** [locked-deps] Error 1
After some research pointed to erlang crypto being an issue, i tried the following in the erlang shell:
Eshell V5.10.3 (abort with ^G)
1> crypto:start().
** exception error: undefined function crypto:start/0
2>
=ERROR REPORT==== 11-Aug-2015::14:48:14 ===
Loading of /usr/local/lib/erlang/lib/crypto-3.1/ebin/crypto.beam failed: badfile
This points, in my view to an error with the erlang install which I am unable to resolve. Any suggestions would be appreciated with enormous gratitude.