maz
Getting no such file or directory', 'ssl.app' error after upgrading Elixir
this may not be related to the upgrade(used asdf) but I’m getting this when running mix local.hex:
➜ mix local.hex
22:27:31.649 [error] Task #PID<0.92.0> started from #PID<0.107.0> terminating
** (MatchError) no match of right hand side value: {:error, {:ssl, {'no such file or directory', 'ssl.app'}}}
(mix 1.10.0-rc.0) lib/mix/utils.ex:578: Mix.Utils.read_httpc/1
(mix 1.10.0-rc.0) lib/mix/utils.ex:510: anonymous fn/2 in Mix.Utils.read_path/2
(elixir 1.10.0-rc.0) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.10.0-rc.0) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.11) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: #Function<4.28560403/0 in Mix.Utils.read_path/2>
Args: []
** (EXIT from #PID<0.92.0>) an exception was raised:
** (MatchError) no match of right hand side value: {:error, {:ssl, {'no such file or directory', 'ssl.app'}}}
(mix 1.10.0-rc.0) lib/mix/utils.ex:578: Mix.Utils.read_httpc/1
(mix 1.10.0-rc.0) lib/mix/utils.ex:510: anonymous fn/2 in Mix.Utils.read_path/2
(elixir 1.10.0-rc.0) lib/task/supervised.ex:90: Task.Supervised.invoke_mfa/2
(elixir 1.10.0-rc.0) lib/task/supervised.ex:35: Task.Supervised.reply/5
(stdlib 3.11) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
any ideas?
I upgraded to erlang 22.2.1 at the same time via asdf. When I return back to erlang 22.0.7 via editing .tool-versions the issue goes away.
So it has something to do with 22.2.1 ..
Most Liked
maz
Mac OS X, with brew and asdf:
Uninstall erlang with missing ssl.app:
asdf uninstall erlang 22.2.1
then:
brew install openssl
asdf plugin-update erlang
ERLANG_OPENSSL_PATH="/usr/local/opt/openssl" asdf install erlang 22.2.1
methyl
Here’s what fixed it for me
asdf uninstall erlang 22.3.4.22
brew install openssl
asdf plugin-update erlang
ERLANG_OPENSSL_PATH="/opt/homebrew/opt/openssl@3" asdf install erlang 22.3.4.22
tfwright
I just ran into this on a fresh ubuntu 20.10 install after installing Erlang via asdf. I was able to fix it by uninstalling Erlang (which was itself a pain that required me to manually rm -rf the files and uninstall the plugin as well) and reinstalling it after installing the libssh-dev package from apt as instructed in the asdf-erlang plugin README.
Popular in Questions
Other popular topics
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
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








