OTP 24.0 has been released

Frank Muller frank.muller.erl@REDACTED
Wed May 19 09:40:38 CEST 2021


Dan Gudmunsson explained me that wx v3.1.5 is the one want to go with on
BigSur.

Thus, edit wxmac.rb to read:
$ nano /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Form
ula/wxmac.rb

url "
https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.5/wxWidgets-3.1.5.tar.bz2
"
sha256 "749f3a389b1e9ef8ba1121551a9901623ae328dc2133d0c7a1ed75ef"

def install
    args = [
      "--prefix=#{prefix}",
      "--enable-compat28", <------ add this one

/Frank


> And for those looking to install Erlang 24 (from GIT) on macOS (BigSur)
> with "wx" support:
>
> 1. uninstall Erlang 24
> kerl delete build 24.0
> kerl delete installation ~/erlang/24.0
>
> 2. uninstall wxmac
> brew uninstall wxmac
>
> 3. rebuild wxmac v3.1.4 from source (see [1] for details):
>
> Edit wxmac.rb to read:
> $ nano /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Form
> ula/wxmac.rb
>
> url "
> https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.4/wxWidgets-3.1.4.tar.bz2
> "
> sha256 "3ca3a19a14b407d0cdda507a7930c2e84ae1c8e74f946e0144d2fa7d881f1a94"
>
> "--enable-compat28",
>
> 4. rebuild Erlang 24 using kerl (see .kerlrc [2]):
> kerl build git https://github.com/erlang/otp.git OTP-24.0 24.0
> kerl install …
>
> Thanks again Luke for pointing me the right direction.
>
> /Frank
>
> [1]
> https://dev.to/hugomatinho/setting-up-elixir-for-mac-with-erlang-observer-working-17pg
>
> [2] cat ~/.kerlrc
> KERL_CONFIGURE_OPTIONS="--disable-hipe --disable-sctp
> --with-microstate-accounting=extra --enable-darwin-64bit
> --enable-dynamic-ssl-lib --enable-kernel-poll --enable-shared-zlib
> --enable-smp-support --enable-threads --enable-wx --with-ssl=$(brew
> --prefix openssl) --without-docs"
> export CFLAGS="-g -O2 -fstack-protector"
> export EGREP=egrep
> export CC=clang
> export CPP='clang -E'
>
>
>> After installing autoconf-2.69 (temporary fix) as explained here:
>> https://github.com/erlang/otp/issues/4821#issuecomment-840338129
>>
>> i was able to build/install Erlang 24 from GIT on macOS.
>>
>> Thanks Luke.
>> /Frank
>>
>> <luke@REDACTED> wrote :
>>
>>> Hi Frank,
>>>
>>> Scroll to the latest comments in the discussion here:
>>>
>>> https://github.com/erlang/otp/issues/4821
>>>
>>> TL;DR - use the source package to build, not git.
>>>
>>> On Mon, May 17, 2021 at 11:16 AM Frank Muller
>>> <frank.muller.erl@REDACTED> wrote:
>>> >
>>> > Hi guys,
>>> >
>>> > Back to macOS.
>>> >
>>> > Luke's suggestion to use "--disable-parallel-configure" helped a lot
>>> on Mac but I'm facing a new error during "crypto" module compilation.
>>> >
>>> > $ sw_vers
>>> > ProductName:    macOS
>>> > ProductVersion: 11.2.3
>>> > BuildVersion:   20D91
>>> >
>>> > $ readlink (brew --prefix openssl)
>>> > ../Cellar/openssl@REDACTED/1.1.1k
>>> >
>>> > $ cat $HOME/.kerlrc
>>> > KERL_CONFIGURE_OPTIONS="--disable-parallel-configure --disable-sctp
>>> --without-sctp --with-ssl=$(brew --prefix openssl)"
>>> >
>>> > $ kerl build git https://github.com/erlang/otp.gitOTP-24.0 24.0
>>> > [...]
>>> > sed -e 's;%VSN%;4.19.1;' mnesia.app.src > ../ebin/mnesia.app
>>> > sed -e 's;%VSN%;4.19.1;' mnesia.appup.src > ../ebin/mnesia.appup
>>> > gmake[3]: Leaving directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/mnesia/src'
>>> > gmake[3]: Entering directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/mnesia/include'
>>> > gmake[3]: Nothing to be done for 'opt'.
>>> > gmake[3]: Leaving directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/mnesia/include'
>>> > gmake[3]: Entering directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/mnesia/examples'
>>> > gmake[3]: Nothing to be done for 'opt'.
>>> > gmake[3]: Leaving directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/mnesia/examples'
>>> > gmake[3]: Entering directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/mnesia/doc/src'
>>> > gmake[3]: Nothing to be done for 'opt'.
>>> > gmake[3]: Leaving directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/mnesia/doc/src'
>>> > === Leaving application mnesia
>>> > gmake[2]: Leaving directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/mnesia'
>>> > gmake[2]: Entering directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/crypto'
>>> > === Entering application crypto
>>> > gmake[3]: Entering directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/crypto/src'
>>> > erlc -W  -Werror +debug_info -DUSE_ESOCK=true -DCRYPTO_VSN=\"5.0\"
>>> -Werror -I../include -o../ebin crypto.erl
>>> > erlc -W  -Werror +debug_info -DUSE_ESOCK=true -DCRYPTO_VSN=\"5.0\"
>>> -Werror -I../include -o../ebin crypto_ec_curves.erl
>>> > sed -e 's;%VSN%;5.0;' crypto.app.src > ../ebin/crypto.app
>>> > sed -e 's;%VSN%;5.0;' crypto.appup.src > ../ebin/crypto.appup
>>> > gmake[3]: Leaving directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/crypto/src'
>>> > gmake[3]: Entering directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/crypto/c_src'
>>> > gmake -f x86_64-apple-darwin20.3.0/Makefile TYPE=opt
>>> > gmake[4]: Entering directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/crypto/c_src'
>>> > gmake[4]: x86_64-apple-darwin20.3.0/Makefile: No such file or directory
>>> > gmake[4]: *** No rule to make target
>>> 'x86_64-apple-darwin20.3.0/Makefile'.  Stop.
>>> > gmake[4]: Leaving directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/crypto/c_src'
>>> > gmake[3]: *** [/Users/frank/.kerl/builds/24.0/otp_src_24.0/make/
>>> run_make.mk:35: opt] Error 2
>>> > gmake[3]: Leaving directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/crypto/c_src'
>>> > gmake[2]: *** [/Users/frank/.kerl/builds/24.0/otp_src_24.0/make/
>>> otp_subdir.mk:29: opt] Error 2
>>> > gmake[2]: Leaving directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib/crypto'
>>> > gmake[1]: *** [/Users/frank/.kerl/builds/24.0/otp_src_24.0/make/
>>> otp_subdir.mk:29: opt] Error 2
>>> > gmake[1]: Leaving directory
>>> '/Users/frank/.kerl/builds/24.0/otp_src_24.0/lib'
>>> >
>>> > Help appreciated
>>> > /Frank
>>> >
>>> >>
>>> >> Hi Frank,
>>> >>
>>> >> Keep an eye out here: https://github.com/erlang/otp/issues/4821
>>> >>
>>> >> On Wed, May 12, 2021 at 9:52 AM Frank Muller <
>>> frank.muller.erl@REDACTED> wrote:
>>> >> >
>>> >> > New issue with libcrypto which is available on my system but
>>> couldn’t be found by configure script.
>>> >> >
>>> >> > $ ls -1 /usr/local/opt/openssl@REDACTED/lib
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210519/783b2454/attachment-0001.htm>


More information about the erlang-questions mailing list