Cannot compile ejabberd 14.07 on Ubuntu 14.04

Hello,

I'm trying to build ejabberd 14.07 from the git source and have installed (among other things) autoconf, libyaml-dev, zlib1g-dev, libpam-dev, libexpat-dev, erlang-dev, erlang-eunit.

Now I get very far, but not to the end:

git clone git@github.com:processone/ejabberd.git
git checkout 14.07
./autogen.sh
./configure
make

results in

[...]
==> ejabberd (compile)
ERROR: compile failed while processing /home/marcel/ejabberd: rebar_abort
make: *** [deps/.built] Error 1

./rebar compile -vvv is more helpful:

[...]
INFO:  Skipped asn1/XmppAddr.asn1
DEBUG: Starting 3 compile worker(s)
DEBUG: Worker exited cleanly
DEBUG: Worker exited cleanly
DEBUG: Worker compilation failed: [{error,
                                    {'EXIT',
                                     {undef,
                                      [{yecc,file,
                                        ["src/eldap_filter_yecc.yrl",
                                         [{parserfile,
                                           "src/eldap_filter_yecc.erl"},
                                          {return,true}]],
                                        []},
                                       {rebar_erlc_compiler,compile_xrl_yrl,
                                        5,
                                        [{file,"src/rebar_erlc_compiler.erl"},
                                         {line,448}]},
                                       {rebar_base_compiler,compile,3,
                                        [{file,"src/rebar_base_compiler.erl"},
                                         {line,121}]},
                                       {rebar_base_compiler,compile_worker,3,
                                        [{file,"src/rebar_base_compiler.erl"},
                                         {line,194}]}]}}},
                                   {source,"src/eldap_filter_yecc.yrl"}]
ERROR: compile failed while processing /home/marcel/ejabberd: rebar_abort

What is the problem?

Noticing that in asn1/, ELDAPv3.asn1 has been `deprecated' to ELDAPv3.asn1~, I courageously removed src/eldap_filter_yecc.yrl, getting ejabberd to compile. However, I doubt this is the right way to deal with it.

Not sure if might be of help

Not sure if might be of help but I run into the same problem today and I was missing erlang-parsetools. Once installed, the compilation succeeded without needing to modify anything in the source.

I have similar issue. I don't

I have similar issue. I don't remember the exact error, but something like this:

==> goldrush (compile)
Error writing no file.
Compile failed while processing /home/user/Documents/ejabberd/ejabberd-14.07/deps/goldrush/ rebar_abort

I had the error while running 'make' command. But, I realized it's a permission issue.

So, I resolved the issue with running sudo make:
$ sudo make

Last time I found out with

Last time I found out with same issue, it looks a dependency problem..instead of weird bad compilation
make: *** [deps/.built] Error 1

Have you tried with the right version of OTP ? Checking for ejabberd 14.07 it requires Erlang/OTP R15B or upper.

$ wget http://erlang.org/download/otp_src_R15B01.tar.gz
$ tar zxvf otp_src_R15B01.tar.gz
$ cd otp_src_R15B01
$ ./configure && make && sudo make install

Do not forget that if you are

Do not forget that if you are building from git, using autogen script is needed:

./autogen.sh
./configure
make
sudo make install
Syndicate content