Re: OTP 24.0 has been released

Frank Muller <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <CAFA6GnA_PYOuPxBpPb0XEopizpMMQcRFVm9XvsATvHQXWF6J=A@mail.gmail.com>
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
>
> <[email protected]> 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
>> <[email protected]> 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/[email protected]/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 <
>> [email protected]> wrote:
>> >> >
>> >> > New issue with libcrypto which is available on my system but
>> couldn’t be found by configure script.
>> >> >
>> >> > $ ls -1 /usr/local/opt/[email protected]/lib
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.