Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install Erlang 24.0.2 on macOS Mojave #211

Closed
joeljuca opened this issue Jun 21, 2021 · 6 comments
Closed

Unable to install Erlang 24.0.2 on macOS Mojave #211

joeljuca opened this issue Jun 21, 2021 · 6 comments

Comments

@joeljuca
Copy link

joeljuca commented Jun 21, 2021

I'm not sure if it's affected by the fact that I'm using macOS Mojave - but I'm including the information just in case.

--

So, whenever I run asdf list all erlang today I get 24.0.2 as the most recent version. If I try to install it, I got an error and the Erlang version is not installed at all:

$ asdf install erlang 24.0.2
asdf_24.0.2 is not a kerl-managed Erlang/OTP installation
The asdf_24.0.2 build has been deleted
Extracting source code
Building Erlang/OTP 24.0.2 (asdf_24.0.2), please wait...
Configure failed.
checking for compiler flags for loadable drivers... -Werror=undef -Werror=implicit -Werror=return-type  -Wdeclaration-after-statement -Wall -Wstrict-proto
types -Wmissing-prototypes  -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -fno-common -g -O2 -I/usr/local/opt/openssl@1.1/include -fPIC -fno-common
checking for linker for loadable drivers... clang
checking for linker flags for loadable drivers... -m64 -bundle -bundle_loader /Users/<MY_USERNAME>/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0.2/otp_src_24.0.2
/bin/x86_64-apple-darwin18.7.0/beam.smp
checking for 'runtime library path' linker flag... not found
checking for multiarch directory... not found
checking size of void *... 8
checking for static zlib... no
checking for OpenSSL header in /usr/local/opt/openssl@1.1... yes
checking for OpenSSL in /usr/local/opt/openssl@1.1... configure: error: neither static nor dynamic crypto library found in /usr/local/opt/openssl@1.1
ERROR: /Users/<MY_USERNAME>/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0.2/otp_src_24.0.2/lib/crypto/configure failed!

Please see /Users/<MY_USERNAME>/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0.2/otp_build_24.0.2.log for full details.

The installation fails, and I can't see the given version when I run asdf list erlang.

I'm using macOS Mojave 10.14.6, zsh 5.8, and asdf v0.8.0-c6145d0:

$ uname -a
Darwin <MY_MACHINE_NAME> 18.7.0 Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64 x86_64

$ zsh --version
zsh 5.8 (x86_64-apple-darwin18.7.0)

$ asdf --version
v0.8.0-c6145d0
@joeljuca
Copy link
Author

For the ones reading this issue from mail clients: sorry, I pressed Enter too early accidentally, creating the issue without a proper description. It should look good now.

@cdeyoung
Copy link

I'm having the same problem on Big Sur.

@a8t
Copy link

a8t commented Jun 27, 2021

If either of you are on an M1 machine using a restored Time Machine backup of an Intel machine, make sure your Homebrew is installed in the /opts/homebrew directory!

@joeljuca
Copy link
Author

joeljuca commented Jul 2, 2021

@a8t nice!

I'm using a Mid-2014 MacBook w/an Intel Core i7 processor. And no Time Machine setup...

@PeteDevoy
Copy link

PeteDevoy commented Aug 18, 2021

I hit the same problem as OP on Big Sur using 24.0 but 24.0.5 worked for me.

@Stratus3D
Copy link
Member

Closing this issue as it it similar to #207.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants