msaraiva / alpine-erlang

Minimal Erlang/Elixir docker images with Alpine Linux
205 stars 6 forks source link

Unable to load crypto library. #18

Open Mayurgupta3 opened 6 years ago

Mayurgupta3 commented 6 years ago

Environment

What to run

            mix phoenix.new --no-brunch phoenix_trello

Current behavior

       06:53:45.220 [error] Unable to load crypto library. Failed with error:
         ":load_failed, Failed to load NIF library /usr/lib/erlang/lib/crypto-4.3/priv/lib/crypto:                                                          'libcrypto.so.1.0.0: cannot open shared object file: No such file or directory'"

OpenSSL might not be installed on this system.

06:53:45.386 [warn] The on_load function for module crypto returned: {:error, {:load_failed, 'Failed to load NIF library /usr/lib/erlang/lib/crypto-4.3/priv/lib/crypto: \'libcrypto.so.1.0.0: cannot open shared object file: No such file or directory\''}}

** (UndefinedFunctionError) function :crypto.strong_rand_bytes/1 is undefined (module :crypto is not available) :crypto.strong_rand_bytes(64) lib/mix/tasks/phoenix.new.ex:484: Mix.Tasks.Phoenix.New.random_string/1 lib/mix/tasks/phoenix.new.ex:223: Mix.Tasks.Phoenix.New.run/4 (mix) lib/mix/task.ex:314: Mix.Task.run_task/3 (mix) lib/mix/cli.ex:80: Mix.CLI.run_task/2

Expected behavior

  To make a directory of phoenix_trello