processone / ejabberd-contrib

Growing and curated ejabberd contributions repository - PR or ask to join !
http://ejabberd.im
250 stars 137 forks source link

escript: Failed to open file: rebar #242

Closed k0fi closed 6 years ago

k0fi commented 6 years ago

Hi, Using ejabberd 14.07 on Debian 8, I'm trying to install mod_pottymouth so I cloned https://github.com/ferd/bitarray but when I run

/usr/lib/erlang/bin/escript rebar get-deps

I get: escript: Failed to open file: rebar

How can I fix this?

Thanks in advance.

badlop commented 6 years ago

You get this error:

$  /usr/lib/erlang/bin/escript rebar get-deps
escript: Failed to open file: rebar

The solution is to enter the source dir:

$ cd bitarray/
$  /usr/lib/erlang/bin/escript rebar get-deps
==> bitarray (get-deps)
Pulling proper from {git,"https://github.com/manopapad/proper.git","master"}
Clonant a 'proper'...
ERROR: Dependency dir /tmp/aa/bitarray/deps/proper failed application validation with reason:
{version_mismatch,{"/tmp/aa/bitarray/deps/proper/src/proper.app.src",
                   {expected,"1.0"},
                   {has,"1.3.0"}}}.
ERROR: 'get-deps' failed while processing /tmp/aa/bitarray: rebar_abort