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

"could not compile dependency :dns" error when running mix ecto.create #34

Closed
LuySeiwert opened this issue Jun 5, 2023 · 2 comments
Closed

Comments

@LuySeiwert
Copy link

LuySeiwert commented Jun 5, 2023

Environment

OS: Ubuntu 22.04
Erlang version: 23.3 installed via asdf (only possible thanks to this workaround asdf-vm/asdf-erlang#247 (comment))
Elixir version: 1.14.3-otp-23 installed also via asdf

Steps to reproduce

Inside the reticulum repository
mix deps.get
mix ecto.create

Expected Outcome

That it works.

Actual outcome

could not compile dependency :dns error

image

Things I tried to resolve this issue

  • googling the issue, I didn't find anything, there are other people having this type of error but never with this specific library or project
  • looking at the closed issues in this repository, there are two similar issues Error with mix ecto.create #24 Error running mix ecto.create #18, I tried their fixes, they didn't work for me (still got the same error message both times)

Any idea why this is happening?

@albirrkarim
Copy link
Owner

I try to clone the latest reticulum (8 June 2023) and run

mix deps.get
mix ecto.create

Got problem can't compile some package (for me its cowlib) then i just run mix deps.compile cowlib then run mix ecto.create again and it work

Environment:

  • Mac os ventura
image

@LuySeiwert
Copy link
Author

Unfortunately, your suggestion didn't work, I still got the same error, but I was able to resolve this issue.

I noticed you are using Mix 1.14.4, which I found odd, as when I initially used a different elixir and erlang version than the ones prescribed I got errors saying that the elixir version specified in the .tools-version file (elixir 1.14.3) does not match the one I installed. I thought you weren't supposed to change this file as your guide says to be careful about the version of elixir and erlang.

When I tried setting the elixir version to 1.14.4 in this .tools-version file (which didn't solve anything), I saw that the specified erlang version is 23.3.4.18. So I installed that specific version and stuck to elixir 1.14.3, which gave me a different compile error now with a hackney dependency. However, for this, I found other GitHub issues telling me to update the rebar dependency via mix local.rebar and that worked.

Thanks for your help, I would not have noticed the difference in erlang versions if I hadn't seen you using elixir 1.14.4!

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