gen-smtp / gen_smtp

The extensible Erlang SMTP client and server library.
Other
683 stars 266 forks source link

(Mix) Could not compile dependency :hut - OTP25 issue #319

Open blackham opened 2 years ago

blackham commented 2 years ago

This is not a bug with gen_smtp; nor a bug with hut. It's a rebar issue when using Erlang/OTP 25. But gen_smtp depends on all these, so I thought I would pop the howto here to help others out when you see the following when gen_smtp compiles.

** (Mix) Could not compile dependency :hut, "/home/your_mom/.mix/rebar compile skip_deps=true deps_dir="/home/your_mom/dev/aqua_cts/_build/dev/lib"" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile hut", update it with "mix deps.update hut" or clean it with "mix deps.clean hut"

To verify you have the problem run

~/.mix/rebar

If you get the following error, then rebar needs fixing.

escript: exception error: undefined function rb:main/1
in function  escript:run/2 (escript.erl, line 750)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3

Try to fix it the correct way. (See if they rebuilt rebar against OTP 25)

mix local.rebar
~/.mix/rebar

If the error still persists, build your own rebar. Instructions at: https://github.com/rebar/rebar

spoiler alert...

cd /tmp/
git clone git://github.com/rebar/rebar.git
cd rebar
./bootstrap
cp rebar ~/.mix/

git clone locked up on my system. I had to download the .zip from github and use that.

cw789 commented 2 years ago

gen_smtp does not anymore depend on hut with 1.2.0