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

Most upvoted comments

Just fixed it by completely uninstalling the erlang plugin:

$ asdf plugin-remove erlang
$ asdf plugin-remove elixir
$ asdf plugin-add erlang
$ asdf plugin-add elixir
$ asdf install

I have a similar problem as @hisapy:

$ cat /Users/<user>/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0.4/otp_src_22.0.4/lib/ssl/src/deps/ssl.d
erlang 20.3 not installed

Contrary to the statement from @anthonator, the suggestion from tomekowal was actually to delete the entire asdf install directory. I’m guessing that tomekowal updated the elixir forum thread after anthonator’s comments. The solution from the elixir forum quoted here:

I’ve deleted the entire build directory

rm -rf /Users/<user>/.asdf/plugins/erlang/kerl-home/builds/asdf_22.0-rc3/

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 a global erlang is not installed. So I delete plugins/erlang/kerl-home/builds/asdf_22.0.4/ again, install erlang 20.3 (probably not necessary, but just remediated the message from ssl.d), then set $ asdf global erlang 21.1, then retry:

$ asdf install erlang 22.0.4
...
Erlang 22.0.4 has been installed.

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 version 22.04

We were having issues installing 23.0.1 and this is what worked for me:

  • Remove any references to 23.0.1 in both ~/.asdf/plugins/erlang/kerl-home/otp_installations and ~/.asdf/plugins/erlang/kerl-home/otp_installations
  • Run asdf plugin-update --all
  • Run 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.