-
Notifications
You must be signed in to change notification settings - Fork 3
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
Upgrading to GNU Make 4 causes Error Could not start application ranch: could not find application file: ranch.app
#4
Comments
I fixed the error. After installing abci_server's dependencies using Mix with I then searched the web and came across the Ranch Github repo https://github.com/ninenines/ranch, and I checked their Releases/Tags https://github.com/ninenines/ranch/tags, and found that their latest Tag is So I crossed updated mix.exs with the following: defp deps do
[
{:abci_server, git: "https://github.com/KrzysiekJ/abci_server.git", tag: "v0.4.0"},
{:ranch, git: "https://github.com/ninenines/ranch.git", tag: "1.4.0"}
]
end And then reinstalled the Mix dependencies with And finally tried running IEx to see if this had resolved the error, which it had!! $ iex -S mix
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
GEN clean-app
GEN coverdata-clean
DEPEND ranch.d
ERLC ranch.erl ranch_acceptor.erl ranch_acceptors_sup.erl ranch_app.erl ranch_conns_sup.erl ranch_listener_sup.erl ranch_protocol.erl ranch_server.erl ranch_ssl.erl ranch_sup.erl ranch_tcp.erl ranch_transport.erl
APP ranch
Compiling 1 file (.ex)
Generated blockchain_tendermint app
Interactive Elixir (1.6.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> So I think we need to update https://github.com/KrzysiekJ/abci_server/blob/master/Makefile#L8, so the code changes to I just tried manually changing that file in my deps/abci_server/Makefile to
|
…ke 4.2.1 Previous version of GNU Make 3.81 supported Ranch 1.3.2, but after upgrading to GNU Make 4.2.1 it did not support Ranch 1.3.2, so it was necessary to upgrade to the latest Ranch 1.4.0
|
Based on your feedback I've modified Pull Request https://github.com/KrzysiekJ/abci_server/pull/3/files and removed the proposed change to the abci_server's Makefile so it still uses Ranch 1.3.2. The Pull Request only proposes to modify the Readme and includes a Troubleshooting section that may help other users who encounter the IEx error |
Is it reproducible reproducible that upgrading Ranch fixes the problem |
I was getting the warning
erlang.mk:26: Please upgrade to GNU Make 4 or later: https://erlang.mk/guide/installation.html
whenever I raniex -S mix
after adding the abci_server dependency in mix.exs had been installed withmix deps.get
So I updated Erlang to v9.2
erl --version
and Make from GNU Make 3.81 to GNU Make 4.2.1make --version
But when I tried to run IEx it gives me the following error
(Mix) Could not start application ranch: could not find application file: ranch.app
If I close IEx and run IEx again, each time it still shows the error
(Mix) Could not start application ranch: could not find application file: ranch.app
If I remove the abci_server dependency from mix.exs, and remove installed dependencies
rm -rf deps
, and then reinstalled just other dependencies withmix deps.get
(without abci_server), and then run IEX withiex
, then IEx loads successfully.System:
elixir --version
erl --version
make --version
The text was updated successfully, but these errors were encountered: