Fl4m3Ph03n1x

Fl4m3Ph03n1x

Error mix deps.get in Mac

Background

I have a project that needs to run on a Mac machine. I have installed erlang 22.0 and Elixir 1.7.0 using asdf and I have tried to install the dependencies using mix deps.get.

Problem

However when I try to run it I get the following error:

(MatchError) no match of right hand side value: {:error, {:ssl, {'no such file or directory', 'ssl.app'}}}

I have tried to fix the issue by following this SO question but it didn’t fix the problem:

Questions

How can I fix this ?

Marked As Solved

kokolegorille

kokolegorille

Yeah last mac update was painful.

Here is what I did to make it work.

  • update asdf
  • update asdf erlang
  • update asdf elixir
  • reinstall tools

Something like this

$ asdf update
$ asdf plugin-update erlang
$ asdf plugin-update elixir

$ asdf list-all erlang
$ asdf list-all elixir

$ asdf install erlang 22.0.7
$ asdf global erlang 22.0.7

$ asdf install elixir 1.9.1-otp-22
$ asdf global elixir 1.9.1-otp-22

$ mix local.hex
$ mix local.rebar

Not to mention I had to update node, yarn and postgresql in the process…

Also Liked

OvermindDL1

OvermindDL1

In the iex terminal what’s the output of :ssl.start()?

And what version of OTP, 22.0.?? Try to make sure it is 22.0.7.

Fl4m3Ph03n1x

Fl4m3Ph03n1x

Thank you everyone for the help, it solved the issue!

Fl4m3Ph03n1x

Fl4m3Ph03n1x

iex(1)> :ssl.start()
** (UndefinedFunctionError) function :ssl.start/0 is undefined (module :ssl is not available)
:ssl.start()

So, I should install erlang 22.0.7 with asdf? I’m on it !

OvermindDL1

OvermindDL1

I would. The fact that :ssl doesn’t exist means it couldn’t bind with the SSL library on your system. As I recall I think Mac’s changed the SSL implementation recently and the very latest OTP’s have support for it or something like that?

prabhugopal

prabhugopal

After long struggle, following Step 2: Parametrized compilation of Erlang in the following link helped me to resolve the issue with ssl and build & install erlang 23.0.2 in mac (Mojave)

Where Next?

Popular in Questions Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
New
Werner
Hi, I’m using Ubuntu 18.04 and after updating to OTP-24.0 yesterday i have this warning when I run “mix local.hex”: 14:57:30.512 [warn] ...
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
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
lk-geimfari
What is most correct way to open, read and parse JSON file with poison? For example if we have example.json file in root of some projec...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Mooodi
Given a string, how can I get access to its character by index? Enum.at("my_string", 2) doesn't work. Or rather, not char, but a substr...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

Other popular topics Top

peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
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
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
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
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New

We're in Beta

About us Mission Statement