asdf-erlang: Unable to install erlang 22.0-rc2
To reproduce:
On an OSX system, run asdf install erlang 22.0-rc2
Expected behaviour:
Successful build
Actual behaviour:
$ asdf install erlang 22.0-rc2
Extracting source code
Building Erlang/OTP 22.0-rc2 (asdf_22.0-rc2), please wait...
APPLICATIONS DISABLED (See: /Users/stavros/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0-rc2/otp_build_22.0-rc2.log)
* jinterface : No Java compiler found
* odbc : ODBC library - header check failed
DOCUMENTATION INFORMATION (See: /Users/stavros/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0-rc2/otp_build_22.0-rc2.log)
* documentation :
* fop is missing.
* Using fakefop to generate placeholder PDF files.
Build failed.
ERLC ../ebin/pubkey_crl.beam
VSN ../ebin/public_key.app
VSN ../ebin/public_key.appup
make[3]: Nothing to be done for `opt'.
=== Leaving application public_key
=== Entering application ssl
/Users/stavros/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0-rc2/otp_src_22.0-rc2/lib/ssl/src/deps/ssl.d:1: *** missing separator. Stop.
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2
Please see /Users/stavros/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0-rc2/otp_build_22.0-rc2.log for full details.
Additional info:
Looks like some printouts are added to the ssl.d file:
$ head /Users/stavros/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0-rc2/otp_src_22.0-rc2/lib/ssl/src/deps/ssl.d
asdf is self upgrading shims to new asdf exec ...
asdf: now running erlc
$(EBIN)/dtls_connection.$(EMULATOR): dtls_connection.erl dtls_connection.hrl \
ssl_connection.hrl ssl_internal.hrl \
/Users/stavros/.asdf/installs/erlang/21.1.2/lib/public_key-1.6.3/include/public_key.hrl \
/Users/stavros/.asdf/installs/erlang/21.1.2/lib/public_key-1.6.3/include/OTP-PUB-KEY.hrl \
/Users/stavros/.asdf/installs/erlang/21.1.2/lib/public_key-1.6.3/include/PKCS-FRAME.hrl \
ssl_record.hrl ssl_handshake.hrl ssl_srp.hrl ssl_cipher.hrl \
dtls_handshake.hrl tls_handshake.hrl ssl_api.hrl ssl_alert.hrl \
dtls_record.hrl \
(notice the asdf lines)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15
Commits related to this issue
- Add fop and unixODBC-devel as Fedora/CentOS dependencies Fixes #100 — committed to nicobao/asdf-erlang by NicolasDeleplace 4 years ago
Just fixed it by completely uninstalling the erlang plugin:
I have a similar problem as @hisapy:
Contrary to the statement from @anthonator, the suggestion from
tomekowal
was actually to delete the entire asdf install directory. I’m guessing thattomekowal
updated the elixir forum thread after anthonator’s comments. The solution from the elixir forum quoted here:I deleted the directory, in my case,
plugins/erlang/kerl-home/builds/asdf_22.0.4/
then retried, and this solution did not work for me.I believe that
erlang 20.3 not installed
is the default message for when aglobal
erlang is not installed. So I deleteplugins/erlang/kerl-home/builds/asdf_22.0.4/
again, installerlang 20.3
(probably not necessary, but just remediated the message fromssl.d
), then set$ asdf global erlang 21.1
, then retry:So looks like setting a global erlang version
$ asdf global erlang 21.1
fixed things for me and so I was able to successfully install the erlang version22.04
This worked for me: https://dev.to/drebits/how-to-install-erlang-on-macos-with-asdf-3p1c
We were having issues installing
23.0.1
and this is what worked for me:23.0.1
in both~/.asdf/plugins/erlang/kerl-home/otp_installations
and~/.asdf/plugins/erlang/kerl-home/otp_installations
asdf plugin-update --all
asdf install erlang 23.0.1
I don’t have time to confirm this, but I trust that it has been resolved. Feel free to close the ticket.