Error compiling Ejabberd dependency of a Phoenix application with Mix: could not compile dependency :ejabberd, "mix compile" failed

I have been trying to embed Ejabberd into a Phoenix web application. To do this, I tried to follow this tutorial. The steps were the following:

Why are those errors occurring? Did anyone succeed in compiling the ejabberd dependency? How? Thank you for your time :).

Upvotes: 0

Views: 274

Answers (1)

Aleksei Matiushkin
Aleksei Matiushkin

Reputation: 121010

For unknown reason ejabberd fails to compile from the root project folder. To compile it, I did the following:

mix deps.get # to retrieve ejabberd 
cd deps/ejabberd
mix do deps.get, compile
cd - # to the project root
mix compile # now the project would compile

Upvotes: 2

Related Questions