kokolegorille

kokolegorille

I have this working on Ubuntu 20.04, but I did nothing special to make it work. I have the same wx version.

$ iex -S mix phx.server
Erlang/OTP 24 [erts-12.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
iex> :observer.start
:ok
iex> 
        (Erlang:361678): Gtk-WARNING **: 20:34:50.847: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tab owner GtkNotebook)

                (Erlang:361678): Gtk-WARNING **: 20:34:50.847: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node tab owner GtkNotebook)

I do have warnings, but they were present with Erlang 23.2. The observer starts correctly.

1
Post #23
dimitarvp

dimitarvp

I am on macOS 11.3.1 with wx version 3.0.5 and I am getting the same warning.

0
Post #24
appdevnick

appdevnick

Same errors here with ASDF

1
Post #25
joseph-lozano

joseph-lozano

The work around here is ugly, but it worked for me

3
Post #26
chvanikoff

chvanikoff

Just installed with bare asdf install erlang 24.0 with no issues except for wx didn’t install, something wrong with the lib paths. No any special flags used neither with the command nor in $ENV. MacOS 11.2.3 with MacPorts and latest updated asdf erlang plugin.

0
Post #27
tomciopp

tomciopp

EGREP=egrep CC=clang CPP=“clang -E” KERL_USE_AUTOCONF=0 KERL_CONFIGURE_OPTIONS=“–disable-hipe --disable-sctp --enable-darwin-64bit --enable-kernel-poll --enable-shared-zlib --enable-smp-support --enable-threads --enable-wx --with-ssl=$(brew --prefix openssl) --without-docs --without-javac --without-jinterface --without-odbc” asdf install erlang 24.0

2
Post #28
dimitarvp

dimitarvp

Thank you. Did that work for you?

I’d like to have the docs compiled in though.

0
Post #29
tomciopp

tomciopp

Yes, this worked for me. You may be able to get away with:

EGREP=egrep CC=clang CPP=“clang -E” KERL_USE_AUTOCONF=0 asdf install erlang 24.0

but I haven’t tried it.

2
Post #30
dimitarvp

dimitarvp

You have set me on the right path and I installed it successfully. Thank you! :049:

For historical purposes, I’ll list some of my environment details and how I made the installation command work.

  • I use macOS 11.3.1.
  • I never downgraded autoconf as was suggested in other threads in order to be able to install OTP 21 / 22. Mine is still at 2.71.
  • I used this command:
EGREP=egrep CC=clang CPP="clang -E" KERL_USE_AUTOCONF=0 KERL_CONFIGURE_OPTIONS="--with-ssl=$(brew --prefix openssl) --enable-wx" asdf install erlang 24.0
6
Post #31
dimitarvp

dimitarvp

Separate note. I now get this error in some of my libs / apps:

** (UndefinedFunctionError) function :crypto.hmac/3 is undefined or private.

Was there a hard deprecation and removal of the function in OTP 24.0, does anybody know?

(/CC @josevalim @garazdawi, I hope you guys don’t mind.)

EDIT 1: looking through Erlang’s official :crypto module docs, yep, :crypto.hmac is no longer there.

EDIT 2: this problem has been mentioned in this Pow issue.

0
Post #32