neiby
I’m working on getting erlang and elixir setup on a new Macbook Pro. I first installed asdf and then used it to install erlang and elixir. But later when I tried to do iex -S mix, I got this error:
** (Mix) The application “crypto” could not be found. This may happen if your Operating System broke Erlang into multiple packages and may be fixed by installing the missing “erlang-dev” and “erlang-crypto” packages
I checked and I do have openssl installed:
% openssl version
LibreSSL 3.3.6
So then I went back to see if I got an error when erlang was being installed. Sure enough:
APPLICATIONS DISABLED (See: /Users/johnneiberger/.asdf/plugins/erlang/kerl-home/builds/asdf_26.1.2/otp_build_26.1.2.log)
* crypto : No usable OpenSSL found
* jinterface : No Java compiler found
* odbc : ODBC library - link check failed
* ssh : No usable OpenSSL found
* ssl : No usable OpenSSL found
Any idea what the problem might be? Is the version of openssl installed on this Mac incompatible with the erlang installer?
Thanks!
John
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
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
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
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
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
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
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
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
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
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixirconf-us
- #elixir-ls
- #ai
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Marcus
Hello @neiby , maybe asdf/erlang/osx can help. You have to install openssl via brew
brew install opensslto gethlx
You can also supply the location of your ssl library as a build parameter to KERL (which asdf uses)
I set up Erlang with the following options:
KERL_CONFIGURE_OPTIONS="--disable-debug --disable-silent-rules --without-javac --enable-shared-zlib --enable-dynamic-ssl-lib --enable-threads --enable-kernel-poll --enable-wx --enable-webview --enable-darwin-64bit --enable-gettimeofday-as-os-system-time --with-ssl=/opt/homebrew/opt/openssl@3" asdf install erlang 25horizon0708
What version is your erlang OTP? Up until 24.2, erlang requires openssl@1.1
D4no0
I am using openssl 1.1 currently for all of my OTP installs, as I also had problems installing OTP 26.2 with openssl 3.
neiby
Thanks, everyone! I installed
opensslvia Homebrew, then did the following:export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl@3)"Then I reinstalled erlang and all is well. I appreciate the help! At the moment, my system is still using LibreSSL 3.3.6, but KERL will use the other
opensslversion, so hopefully that will be okay.neiby
Interestingly, this also solved another problem I was having with ElixirLS in VSCode. I couldn’t use any version more recent than v0.13.0 or I’d get all sorts of connection errors and it would just crash. But after the steps I took above to fix the
opensslissue, ElixirLS is working great.Two birds with one stone!
AaronJamesKing
I was supporting an older app running on OTP 23.3, managed with asdf.
Per advice from this thread and this GitHub issue, I was trying to install Erlang by specifying the path to my Homebrew-managed OpenSSL.
But it turns out I only had OpenSSL 3.3.0 installed, and as others have mentioned, v3 was not supported until OTP 25 (or something like that).
So I was able to solve the problem via:
asdf uninstall erlang 23.3brew install openssl@1.1asdf install erlang 23.3 --with-ssl=/opt/homebrew/opt/openssl@1.1(The OpenSSL path can be found with
brew --prefix openssl@1.1)This was a nice, clean solution since I did not have to edit my
.zshrcor any other env vars, and myopensslcommand still points to v3.3.0.ryanswapp
Mucho gracias! Exactly the fix I needed. Thanks