Skip to content

Unable to load crypto library. #18

Description

@Mayurgupta3

Environment

  • Elixir & Erlang/OTP versions (elixir --version):

              Erlang/OTP 21 [erts-10.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]
    
              Elixir 1.6.6 (compiled with OTP 19)
    
  • Operating system:
    kali Linux

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions