New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile latest ejabberd for the Elixir project #4128
Comments
Can you try with HEAD instead? |
Yes, I tried with pulling the dependency from git, but got exactly the same error output |
So you did:
Then tried what? |
In my case, in the project dependencies, was done just a simple change:
did a clean up, and rebuild the app via the
I haven't done it previously. However, I did as soon as this was suggested:
|
Aha! You are right, recent versions of ejabberd have the problem you described. It seems nobody used that possibility recently... Thanks for reporting it! I've found the problem, fixed this and many other small problems. I've committed those preliminary fixes to a branch in my fork, it would be great if you can test it, check it really works, and report any other problems. It works for me now following this tutorial: To use my fork with the proposed fixes, in step 3 setup this in the file
Following that tutorial, ejabberd and all dependencies are compiled and start correctly. The default ejabberd configuration in the file starttls_required: false Stun is now enabled by default, no need to run In config :ejabberd,
vars_config_path: '../../config/vars.config',
file: "config/ejabberd.yml",
log_path: 'logs/ejabberd.log' and write a new file {odbc, true}.
{mssql, false}.
{mysql, true}.
{pgsql, true}.
{sqlite, true}.
{pam, true}.
{zlib, true}.
{redis, true}.
{stun, true}.
{sip, true}.
{lua, true}. There are still some warnings during compilation that I couldn't solve. Don't worry, ejabberd works correctly:
|
Thank you for your response! I tried to rebuild an Elixir application with settings mentioned above. And the changes work great to me. However, right after it I faced with another issue on recompile the application with the
And then executed the
Which, I believe, might be related to the #4087 issue, right? |
As I said in my previous comment, no need to run
This doesn't seem a good idea, because then the dependencies are downloaded and compiled twice
I added a fix for this in badlop@615e764 and the fix requires to add In summary: better use |
Were you able to finally compile ejabberd correctly? |
I tried today to rebuild an app with the mentioned solution (via The setup is quite simple:
import Config
config :ejabberd,
file: "config/ejabberd.yml",
vars_config_path: "config/ejabberd_features.config",
log_path: 'logs/ejabberd.log'
And the
With the such setup, it compiles, but fails on the
So, I tried to add append the
|
In my comment I showed: config :ejabberd,
vars_config_path: '../../config/vars.config',
file: "config/ejabberd.yml",
log_path: 'logs/ejabberd.log' But you changed that to: vars_config_path: "config/ejabberd_features.config", That option is used by |
Right, you were correct. That was my mistake on the configuration side. Now I'm able to compile and run the application. Thank you for the assistance! :) |
Environment
Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 14.2
Bug description
On an attempt to use a
ejabberd
as a dependency in the Elixir project, the Mix stops compiling with the following error:Steps to reproduce:
mix new ejapp
mix do deps.get, compile
command and see the output.I also tried to use older versions of
ejabberd
, but still had no success in compiling it without issues. Initially I was following the official documentation, and the only difference is the used version.The text was updated successfully, but these errors were encountered: