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

aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
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
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New

Other popular topics Top

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
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
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
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
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
Qqwy
Update: How to use the Blogs &amp; Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 126479 1222
New

We're in Beta

About us Mission Statement