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

Installing Erlang on OSX Mojave can't find OpenSSL #86

Closed
fhunleth opened this issue Sep 25, 2018 · 7 comments
Closed

Installing Erlang on OSX Mojave can't find OpenSSL #86

fhunleth opened this issue Sep 25, 2018 · 7 comments

Comments

@fhunleth
Copy link

I'm currently getting:

$ asdf install erlang 21.0.9
Extracting source code
Building Erlang/OTP 21.0.9 (asdf_21.0.9), please wait...
APPLICATIONS DISABLED (See: /Users/fhunleth/.asdf/plugins/erlang/kerl-home/builds/asdf_21.0.9/otp_build_21.0.9.log)
 * crypto         : No usable OpenSSL found
 * odbc           : ODBC library - header check failed
 * ssh            : No usable OpenSSL found
 * ssl            : No usable OpenSSL found

I've tried reinstalling OpenSSL with Homebrew and then exporting PKG_CONFIG_PATH, CPPFLAGS, and LDFLAGS to help the build tools find it, but no luck.

I'm at the tip revisions of asdf-erlang and asdf.

I'm wondering if there's anything else that would be good to try. As far as I could tell installing Erlang w/ asdf on High Sierra worked flawlessly for me, so I assume that the Mojave upgrade changed something important.

@MarcusSky
Copy link

same here!

@MarcusSky
Copy link

MarcusSky commented Sep 25, 2018

@fhunleth there's a possible solution here: #82 I'm trying it out right now.

EDIT: worked for me ☝️

@sirn
Copy link
Contributor

sirn commented Sep 25, 2018

Kerl detects if it is being installed on macOS 10.11+ and use brew to determine the openssl location. Unfortunately the detection is limited to just 10.13 (High Sierra) and OpenSSL detection doesn't happen in Mojave.

I've went ahead and created PR for Kerl to detect OpenSSL on Mojave. If you want to use kerl to install Erlang in the same manner as asdf-erlang, please try:

$ export ERLANG_VERSION=21.0.9
$ export KERL_BASE_DIR="$HOME/.asdf/plugins/erlang/kerl-home/"
$ export KERL_BUILD_BACKEND=git
$ curl -o kerl https://raw.githubusercontent.com/kerl/kerl/ea951d4dfd10e5b80f8a7a1bc7a56062fd426907/kerl
$ chmod +x kerl
$ ./kerl build $ERLANG_VERSION asdf_$ERLANG_VERSION
$ ./kerl install asdf_$ERLANG_VERSION ~/.asdf/installs/erlang/$ERLANG_VERSION/

Edit: fix snippets

@Stratus3D
Copy link
Member

Stratus3D commented Oct 11, 2018

For anyone who comes across this issue. The fix should be as simple as running asdf plugin-update erlang.

@coladarci
Copy link

Thanks @Stratus3D for pointing me in the right direction - asdf plugin-update --all is a good thing to do after upgrading to Mojave, we've found..

@pdgonzalez872
Copy link
Contributor

If folks run into this issue and asdf plugin-update erlang does not solve their problem:

After helping set up a colleague's machine, using the --with-ssl flag, as seen here: #82 (comment) was the solution.

@skyerus
Copy link

skyerus commented Oct 20, 2019

To add to this if you're still having issues, I had to rm -R ~/.asdf/plugins/erlang/kerl-home/builds/asdf_19.0 to get it to install properly

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

7 participants