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.

D4no0

D4no0

That too, but this is also a issue:

It might be some linking error, check the /opt/homebrew/opt/ folder for presence of openssl@3, it might be possible that you have openssl@3.3 or something like that, I have multiple 3.x versions present there.

Also ensure that the following folders are present inside of openssl installation: bin, share, include, lib.

PS: To rule out any other potential errors, you can actually disable building of OTP libraries that require openssl by passing the flag --without-ssl, if that works then the problem is strictly related to openssl linking.

Where Next?

Popular in Questions Top

Tee
can someone please explain to me how Enum.reduce works with maps
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
dokuzbir
Hello, I am trying to convert my lists to string without losing brackets.For start i have 3 map. They look like these buyer = %{ id: ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
sabri
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size? Thanks
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

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
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New

We're in Beta

About us Mission Statement