asdf-erlang: Not able to install erlang otp 22.x
I’m trying to install erlang otp 22.x. I have installed elixir and erlang using asdf and I have set the global version as otp 23 and elixir latest. But one for one of my projects I need to install otp 22 but It somehow not able to install and I’m getting this error.
`asdf_22.1.7 is not a kerl-managed Erlang/OTP installation The asdf_22.1.7 build has been deleted Extracting source code Building Erlang/OTP 22.1.7 (asdf_22.1.7), please wait… Build failed. ^ /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h:212:30: note: previous declaration is here extern const struct in6_addr in6addr_loopback; ^ 2 errors generated. make[4]: *** [obj/x86_64-apple-darwin19.6.0/opt/smp/socket_nif.o] Error 1 make[3]: *** [opt] Error 2 make[2]: *** [opt] Error 2 make[1]: *** [smp] Error 2 make: *** [emulator] Error 2
Please see /Users/siddhant/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.7/otp_build_22.1.7.log for full details.`
I don’t know what is causing this. Do I have to uninstall the erlang version which I have installed?
any suggestions on this?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (5 by maintainers)
I had the same issues and none of the suggestions worked. This did the trick for me (via https://github.com/asdf-vm/asdf-erlang/issues/116#issuecomment-538678768):
asdf plugin-update erlang
asdf install erlang 22.3.4.12