Hello all!
I’ve been using elixir for a few months now and feel pretty comfortable in it. Now I wanted to checkout Phoenix LiveView, so I followed the getting started tutorial but I get stuck in “Up and Running”. (Up and Running — Phoenix v1.7.6). When I use the command mix ecto.create, it taps out with an error message
[… several other lines in the same file … ]
src/mint_shims.erl:204:1: Warning: function verify_hostname_match_loop/5 is unused
% 204| verify_hostname_match_loop(Refs0, Pres0, undefined, FailCB, Cert) →
% | ^src/mint_shims.erl:227:1: Warning: function to_lower_ascii/1 is unused
% 227| to_lower_ascii({ip,_}=X) → X;
% | ^src/mint_shims.erl:234:1: Warning: function to_string/1 is unused
% 234| to_string(S) when is_list(S) → S;
% | ^could not compile dependency :mint, “mix compile” failed. Errors may have been logged above. You can recompile this dependency with “mix deps.compile mint”, update it with “mix deps.update mint” or clean it with “mix deps.clean mint”
I did that. I used mix deps.update mint, that works. But everytime I try to compile it, it fails with the same error message. I also tried to use a lower mint version (1.3 is needed because of Finch if I understand it correctly) - that did not work either, same error.
I checked the versions before starting as instructed
Erlang/OTP 24 [erts-12.2.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
Elixir 1.14.5 (compiled with Erlang/OTP 24)
and I setup a local postgres DB and changed the config to match it (just the database name in fact). I am working on Ubuntu 22.04.2 LTS.
Unfortunately, google did not get me far. Do you have any ideas how to fix it? Any input is appreciated! If you have any questions or information I should provide, please say so, I will do my best.
Thank you!