maz

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

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
12
Post #5
methyl

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

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.

Where Next?

Popular in Questions Top

Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
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
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
nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
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
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
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
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New

Other popular topics Top

danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29377 241
New
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
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 42920 311
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43622 214
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
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
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New

We're in Beta

About us Mission Statement