I'm having a small issue trying to use a Erlang library within an Elixir project.
The library in question is the erl8583
for ISO-8583 message packing and unpacking.
I found a github repository for erl8583
, and adjusted my mix.exs
to the following:
defmodule Iso.Mixfile do
use Mix.Project
def project do
[app: :iso,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
def application do
[applications: [:logger]]
end
defp deps do
[{:erl8583, github: "mgwidmann/erl8583"}]
end
end
When I run mix deps.get
and mix deps.compile
, it runs smoothly.
Then, I try to start a IEx session with iex -S mix
, and get the following error:
Unchecked dependencies for environment dev:
* erl8583 (git://github.com/mgwidmann/erl8583.git)
could not find an app file at _build/dev/lib/erl8583/ebin/erl8583.app. This may happen if the dependency was not yet compiled, or you specified the wrong application name in your deps, or the dependency indeed has no app file (then you can pass app: false as option)
** (Mix) Can't continue due to errors on dependencies
It says it could not find an app file at _build/dev/lib/erl8583/ebin/erl8583.app
. As I understand, mix should have just grabbed that file from deps/erl8583/src
and included there (that file exists, I checked).
I tried to manually copy the file from deps
to _build
but no success. What am I doing wrong?