Skip to content
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

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

Open
blackham opened this issue Aug 26, 2022 · 1 comment
Open

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

blackham opened this issue Aug 26, 2022 · 1 comment

Comments

@blackham
Copy link

blackham commented Aug 26, 2022

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
Copy link
Contributor

cw789 commented Aug 29, 2022

gen_smtp does not anymore depend on hut with 1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants