Skip to content

Instantly share code, notes, and snippets.

@thejohnnybot
Created January 7, 2016 17:05
Show Gist options
  • Select an option

  • Save thejohnnybot/c6ea4cae862b720b9c36 to your computer and use it in GitHub Desktop.

Select an option

Save thejohnnybot/c6ea4cae862b720b9c36 to your computer and use it in GitHub Desktop.
comeonin issue
== Compilation error on file lib/comeonin/bcrypt.ex ==
** (MatchError) no match of right hand side value: {:error, :on_load_failure}
(stdlib) erl_eval.erl:669: :erl_eval.do_apply/6
17:04:22.407 [error] Process #PID<0.131.0> raised an exception
** (MatchError) no match of right hand side value: {:error, {:load_failed, 'Failed to load NIF library: \'Error loading shared library /usr/src/app/_build/dev/lib/comeonin/priv/bcrypt_nif.so: Exec format error\''}}
lib/comeonin/bcrypt.ex:45: Comeonin.Bcrypt.init/0
(kernel) code_server.erl:1674: anonymous fn/1 in :code_server.handle_on_load/4
could not compile dependency :comeonin, "mix compile" failed. You can recompile this dependency with "mix deps.compile comeonin", update it with "mix deps.update comeonin" or clean it with "mix deps.clean comeonin"
17:04:22.409 [warn] The on_load function for module Elixir.Comeonin.Bcrypt returned {{:badmatch,
{:error,
{:load_failed,
'Failed to load NIF library: \'Error loading shared library /usr/src/app/_build/dev/lib/comeonin/priv/bcrypt_nif.so: Exec format error\''}}},
[{Comeonin.Bcrypt, :init, 0, [file: 'lib/comeonin/bcrypt.ex', line: 45]},
{:code_server, :"-handle_on_load/4-fun-0-", 1,
[file: 'code_server.erl', line: 1674]}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment