rebar: error exit on create-app: {crypto,start,[]}

Andrew Matthews picture Andrew Matthews · Jan 20, 2011 · Viewed 7.7k times · Source

I followed the instructions here, to the letter. I then ran the instruction to create an application project structure, and got the following error.

$ ./rebar create-app appid=myapp
Uncaught error in rebar_core: {'EXIT',
                              {undef,
                                  [{crypto,start,[]},
                                   {rebar_core,run,1},
                                   {rebar,main,1},
                                   {escript,run,2},
                                   {escript,start,1},
                                   {init,start_it,1},
                                   {init,start_em,1}]}}

Any ideas what I'm doing wrong?

Answer

YOUR ARGUMENT IS VALID picture YOUR ARGUMENT IS VALID · Jan 20, 2011

It looks like your Erlang was compiled without OpenSSL (the crypto module). crypto is required for many (most?) Erlang applications. You'll need to get a version of Erlang with a working crypto module, and then you shouldn't have any problems like this.