You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I install erlang using asdf I do not get any error about a not found OpenSSL (just a warning - even using --with-ssl).
asdf install erlang 27.1.2
ERROR: 'asdf_27.1.2' is not a kerl-managed Erlang/OTP installation.
ERROR: no build named 'asdf_27.1.2'!
Downloading (from GitHub) Erlang/OTP 27.1.2 to /Users/****/.asdf/downloads/erlang/27.1.2...
Extracting source code for normal build...
Building (normal) Erlang/OTP 27.1.2 (asdf_27.1.2); please wait...
Initializing (build) log file at /Users/****/.asdf/plugins/erlang/kerl-home/builds/asdf_27.1.2/otp_build_27.1.2.log.
Attempting to use Homebrew OpenSSL from /opt/homebrew/opt/[email protected]...
WARNING: ... you may have to brew the expected version or otherwise use --with-ssl
APPLICATIONS DISABLED (See: /Users/****/.asdf/plugins/erlang/kerl-home/builds/asdf_27.1.2/otp_build_27.1.2.log)
* odbc : ODBC library - link check failed
Erlang/OTP 27.1.2 (asdf_27.1.2) has been successfully built.
Cleaning up compilation products for 'asdf_27.1.2' under:
- /Users/****/.asdf/plugins/erlang/kerl-home/builds...
- /Users/****/.asdf/downloads/erlang/27.1.2...
... done.
But when trying to install for example pheonix using mix archive.install hex phx_new I get the following errors:
21:33:30.081 [error] Unable to load crypto library. Failed with error:
":load_failed, Failed to load NIF library: 'dlopen(/Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/crypto.so, 0x0002): Library not loaded: @loader_path/../lib/libcrypto.1.1.dylib
Referenced from: <0A58D918-215B-3797-B579-D11AE08B0B91> /Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/crypto.so
Reason: tried: '/Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/../lib/libcrypto.1.1.dylib' (no such file)'"
OpenSSL might not be installed on this system.
21:33:30.104 [warning] The on_load function for module crypto returned:
{:error,
{:load_failed,
~c"Failed to load NIF library: 'dlopen(/Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/crypto.so, 0x0002): Library not loaded: @loader_path/../lib/libcrypto.1.1.dylib\n Referenced from: <0A58D918-215B-3797-B579-D11AE08B0B91> /Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/crypto.so\n Reason: tried: '/Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/../lib/libcrypto.1.1.dylib' (no such file)'"}}
21:33:30.151 [error] Unable to load crypto library. Failed with error:
":load_failed, Failed to load NIF library: 'dlopen(/Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/crypto.so, 0x0002): Library not loaded: @loader_path/../lib/libcrypto.1.1.dylib
Referenced from: <0A58D918-215B-3797-B579-D11AE08B0B91> /Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/crypto.so
Reason: tried: '/Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/../lib/libcrypto.1.1.dylib' (no such file)'"
OpenSSL might not be installed on this system.
21:33:30.152 [warning] The on_load function for module crypto returned:
{:error,
{:load_failed,
~c"Failed to load NIF library: 'dlopen(/Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/crypto.so, 0x0002): Library not loaded: @loader_path/../lib/libcrypto.1.1.dylib\n Referenced from: <0A58D918-215B-3797-B579-D11AE08B0B91> /Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/crypto.so\n Reason: tried: '/Users/****/.asdf/installs/erlang/27.1.2/lib/crypto-5.5.1/priv/lib/../lib/libcrypto.1.1.dylib' (no such file)'"}}
** (UndefinedFunctionError) function :crypto.strong_rand_bytes/1 is undefined (module :crypto is not available)
:crypto.strong_rand_bytes(4)
(mix 1.17.3) lib/mix/local/installer.ex:401: Mix.Local.Installer.tmp_path/0
(mix 1.17.3) lib/mix/local/installer.ex:322: Mix.Local.Installer.fetch/3
(mix 1.17.3) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
(mix 1.17.3) lib/mix/cli.ex:96: Mix.CLI.run_task/2
.asdf/installs/elixir/1.17.3-otp-27/bin/mix:2: (file)
When installing using brew (brew install erlang) everything works fine. So I am using this as a workaround right now.
The text was updated successfully, but these errors were encountered:
When I install erlang using asdf I do not get any error about a not found OpenSSL (just a warning - even using --with-ssl).
But when trying to install for example pheonix using
mix archive.install hex phx_new
I get the following errors:When installing using brew (
brew install erlang
) everything works fine. So I am using this as a workaround right now.The text was updated successfully, but these errors were encountered: