system76 / elixir-mcrypt

Elixir NIF wrapper around libmcrypt
MIT License
3 stars 5 forks source link

Can't get it to compile #1

Open digitalronin opened 8 years ago

digitalronin commented 8 years ago

Hi there

I'm having problems using this library. This is the error I'm getting;

$ mix deps.compile
==> mcrypt
could not compile dependency :mcrypt, "mix compile" failed. You can recompile this dependency with "mix deps.compile mcrypt", update it with "mix deps.update mcrypt" or clean it with "mix deps.clean mcrypt"
==> mcrypttest
** (Mix) The task "compile.make" could not be found. Did you mean "compile"?

I get the same error from mix deps.compile mcrypt

This is using Elixir 1.1.1, but I get the same error under 1.2.0

Steps to reproduce;

$ mix new mcrypttest
$ cd mcrypttest
# Add mcrypt to depenendcies in mix.exs

    defp deps do
      [
        { :mcrypt, "0.1.0" }
      ]
    end

$ mix deps.get
$ mix compile

Do you have any idea what I'm doing wrong, here?

Thanks

David

bencates commented 8 years ago

You have to have libmcrypt available on your system. It's the libmcrypt-dev package in Ubuntu and (I believe) the mcrypt package in homebrew.