JohnnyCurran

JohnnyCurran

Can't install Erlang 27.2.4. OpenSSL issues. MacOS Sequoia

Hi, I cannot install erlang 27.2.4 with asdf.

I have tried dozens of variations of KERL_CONFIGURE_OPTIONS.

I have openssl@3 installed from homebrew.

I removed and re-installed it, and no dice.

MacOS Sequoia. 15.3.2

Here is the latest log:

$ KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl@3)" asdf install erlang 27.2.4
[asdf-erlang] ⚠️ Warning: fop is optional and not installed. Please install it using 'brew install fop'.
[asdf-erlang] ⚠️ Warning: unixodbc is optional and not installed. Please install it using 'brew install unixodbc'.
[asdf-erlang] ⚠️ Warning: openjdk is optional and not installed. Please install it using 'brew install openjdk'.
[asdf-erlang] ⚠️ Warning: wxmac is optional and not installed. You can install it using 'brew install --build-from-source wxmac'.
[asdf-erlang] ⚠️ Note: wxmac is required for building Erlang/OTP with a working :observer
[asdf-erlang] 🛟 Added unixodbc to KERL_CONFIGURE_OPTIONS:  --with-odbc=/opt/homebrew/opt/unixodbc
[asdf-erlang] 🛟 No CC found. Setting CC to: /usr/bin/clang -I/opt/homebrew/opt/unixodbc/include
[asdf-erlang] 🛟 Added /opt/homebrew/opt/unixodbc/lib to LDFLAGS env var
[asdf-erlang] 🛟 OpenJDK has been added to PATH for this terminal session: /opt/homebrew/opt/openjdk/bin
[asdf-erlang] Please ensure this is included in your shell's dot files (.zshrc, .bashrc, etc.)
[asdf-erlang] 📦 Building with KERL_CONFIGURE_OPTIONS=--without-javac --with-ssl=/opt/homebrew/opt/openssl@3  --with-odbc=/opt/homebrew/opt/unixodbc
[asdf-erlang] ❄️ No kerl installation to cleanup for asdf_27.2.4
[asdf-erlang] ❄️ No kerl build to cleanup for asdf_27.2.4
Extracting source code for normal build...
Building (normal) Erlang/OTP 27.2.4 (asdf_27.2.4); please wait...
Initializing (build) log file at /Users/johnny/.asdf/plugins/erlang/kerl-home/builds/asdf_27.2.4/otp_build_27.2.4.log.
ERROR: configure failed.
checking for linker flags for loadable drivers... -m64 -bundle -bundle_loader /Users/johnny/.asdf/plugins/erlang/kerl-home/builds/asdf_27.2.4/otp_src_27.2.4/bin/x86_64-apple-darwin24.3.0/beam.smp
checking for 'runtime library path' linker flag... not found
checking for multiarch directory... not found
checking size of void *... (cached) 8
checking for static zlib... no
checking how to run the C preprocessor... /usr/bin/clang -I/opt/homebrew/opt/unixodbc/include -E
checking for egrep -e... /usr/bin/grep -E
checking for OpenSSL header in /opt/homebrew/opt/openssl@3... yes
checking for OpenSSL in /opt/homebrew/opt/openssl@3... configure: error: neither static nor dynamic crypto library found in /opt/homebrew/opt/openssl@3
ERROR: /Users/johnny/.asdf/plugins/erlang/kerl-home/builds/asdf_27.2.4/otp_src_27.2.4/lib/crypto/configure failed!

Please see /Users/johnny/.asdf/plugins/erlang/kerl-home/builds/asdf_27.2.4/otp_build_27.2.4.log for full details.
Auto cleaning all artifacts except the log file...
(use KERL_AUTOCLEAN=0 to keep build on failure, if desired)
Cleaning up compilation products for 'asdf_27.2.4' under:
  - /Users/johnny/.asdf/plugins/erlang/kerl-home/builds...
  - /Users/johnny/.asdf/downloads/erlang/27.2.4...
... done.

Thank you for your help :slight_smile:

Marked As Solved

JohnnyCurran

JohnnyCurran

What a trip. asdf info was reporting I was on x86_64. So I finally found out that /usr/local/bin/bash was x86_64.

I ran brew install bash and now I have the arm64 version. (Even though for some reason my interactive bash was arm64)

erlang 27.4.2 succesfully built.

Now everything just works

Thank you both for your help

Also Liked

D4no0

D4no0

What happens if you don’t pass the --with-ssl flag? Do you get the same error?

D4no0

D4no0

Is your mac with a M chip?(ARM architecture) If yes, check that your terminal is not using rosetta, that can be potentially a problem as you might have a mismatch between the architecture of binaries.

I’ve just built successfully the version you mentioned on my air m1, without any custom kerl flags, it just works.

Where Next?

Popular in Questions Top

fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
jaysoifer
Is there a way to rollback a specific migration and only that one ("skipping" all the other ones)? Would mix ecto.rollback -v 2008090...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "eq...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New

Other popular topics Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 53578 245
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

We're in Beta

About us Mission Statement