JohnnyCurran

JohnnyCurran

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:

Showing Posts 1 to 8

D4no0

D4no0

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

JohnnyCurran

JohnnyCurran OP

Yes :frowning:

Here’s the output:

$ KERL_CONFIGURE_OPTIONS="--without-javac" 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: openjdk is optional and not installed. Please install it using 'brew install openjdk'.
[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] 🛟 Added openssl to KERL_CONFIGURE_OPTIONS:  --with-ssl=/opt/homebrew/opt/openssl@3
[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-odbc=/opt/homebrew/opt/unixodbc  --with-ssl=/opt/homebrew/opt/openssl@3
[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.
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.

JohnnyCurran

JohnnyCurran OP

I have before, too, and something went haywire.

arch returns arm64. Terminal is not using Rosetta

sysctl -n sysctl.proc_translated returns 0

JohnnyCurran

JohnnyCurran OP

My linker is looking for x86_64:

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

So that’s an issue. How do I solve that?

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.

JohnnyCurran

JohnnyCurran OP

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

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews