cocoa-xu / otp-build

Precompiled OTP for NIF library CI builds.
https://cocoa.build/otp/
Apache License 2.0
1 stars 0 forks source link

OTP-27.0.1 otp-arm64-apple-darwin.tar.gz crypto error #3

Closed wojtekmach closed 2 weeks ago

wojtekmach commented 2 months ago

I did the following:

~/Downloads% curl -LO --fail https://github.com/cocoa-xu/otp-build/releases/download/v27.0.1/otp-arm64-apple-darwin.tar.gz
~/Downloads% tar xzf otp-arm64-apple-darwin.tar.gz
~/Downloads% (cd usr/local/erlang && Install -sasl $PWD)
~/Downloads% usr/local/bin/erl
Erlang/OTP 27 [erts-15.0.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Eshell V15.0.1 (press Ctrl+G to abort, type help(). for help)
1> crypto:start().
=ERROR REPORT==== 19-Aug-2024::11:37:20.808026 ===
Unable to load crypto library. Failed with error:
"load_failed, Failed to load NIF library: 'dlopen(/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so, 0x0002): tried: '/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so' (unloadable mach-o file type 1 '/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so'), '/System/Volumes/Preboot/Cryptexes/OS/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so' (no such file), '/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so' (unloadable mach-o file type 1 '/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so')'"
OpenSSL might not be installed on this system.

=WARNING REPORT==== 19-Aug-2024::11:37:20.813247 ===
The on_load function for module crypto returned:
{error,{load_failed,"Failed to load NIF library: 'dlopen(/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so, 0x0002): tried: '/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so' (unloadable mach-o file type 1 '/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so'), '/System/Volumes/Preboot/Cryptexes/OS/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so' (no such file), '/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so' (unloadable mach-o file type 1 '/Users/wojtek/Downloads/usr/local/lib/erlang/lib/crypto-5.5/priv/lib/crypto.so')'"}}
cocoa-xu commented 2 months ago

Ah, I remember this one, it's on my todo list and once the OpenSSL issue is fixed it should be okay to download and use.

cocoa-xu commented 2 weeks ago

Closing this one as it should be resolved. I'll recompile all previous versions :)

$ curl -LO --fail https://github.com/cocoa-xu/otp-build/releases/download/v27.1.1/otp-release-arm64-apple-darwin.tar.gz
$ tar -xzf otp-release-arm64-apple-darwin.tar.gz
$ ./bin/erl
Erlang/OTP 27 [erts-15.1.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Eshell V15.0.1 (press Ctrl+G to abort, type help(). for help)
1> crypto:start().
ok