{"action":"opened","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/3939","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3939/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3939/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3939/events","html_url":"https://github.com/elixir-lang/elixir/issues/3939","id":115338003,"number":3939,"title":"(UndefinedFunctionError) undefined function: :crypto.hash/2 (module :crypto is not available)","user":{"login":"czepluch","id":1026799,"avatar_url":"https://avatars.githubusercontent.com/u/1026799?v=3","gravatar_id":"","url":"https://api.github.com/users/czepluch","html_url":"https://github.com/czepluch","followers_url":"https://api.github.com/users/czepluch/followers","following_url":"https://api.github.com/users/czepluch/following{/other_user}","gists_url":"https://api.github.com/users/czepluch/gists{/gist_id}","starred_url":"https://api.github.com/users/czepluch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czepluch/subscriptions","organizations_url":"https://api.github.com/users/czepluch/orgs","repos_url":"https://api.github.com/users/czepluch/repos","events_url":"https://api.github.com/users/czepluch/events{/privacy}","received_events_url":"https://api.github.com/users/czepluch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-05T17:50:30Z","updated_at":"2015-11-05T17:50:30Z","closed_at":null,"body":"Okay, so I am trying to use :crypto within an elixir mix project. It's weird, because :crypto works fine if I just use it directly in iex, but as soon as I use the exact same function in a mix project it fails like this:\r\n\r\n```\r\nErlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]\r\n\r\nInteractive Elixir (1.1.1) - press Ctrl+C to exit (type h() ENTER for help)\r\niex(1)> Crypto.hash('hello')\r\n\r\n18:47:01.491 [error] Unable to load crypto library. Failed with error:\r\n\":load_failed, Failed to load NIF library: '/home/czepluch/Dropbox/prgrms/elixir/crypto/_build/dev/lib/crypto/priv/lib/crypto.so: cannot open shared object file: No such file or directory'\"\r\nOpenSSL might not be installed on this system.\r\n\r\n** (UndefinedFunctionError) undefined function: :crypto.hash/2 (module :crypto is not available)\r\n\r\n18:47:01.496 [warn]  The on_load function for module crypto returned {:error,\r\n {:load_failed,\r\n  'Failed to load NIF library: \\'/home/czepluch/Dropbox/prgrms/elixir/crypto/_build/dev/lib/crypto/priv/lib/crypto.so: cannot open shared object file: No such file or directory\\''}}\r\n\r\n    :crypto.hash(:sha256, 'hello')\r\n```\r\n\r\nI am using Arch Linux and should have the newest version of OpenSSL(version 1.0.2d), which I have read is a problem sometimes. But I haven't really been able to trace down this issue. And as mentioned earlier what really confuses me is that this function works fine in iex."}}