Make sure to update rebar by running mix local.rebar
and try again. Do you get the same error?
Yes getting same error.
https://johnhamelink.com/2016/03/17/openssl-and-elixir
I tried this also
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" mix compile
Am I using this correctly?
Unfortunately I don’t really have time now (working), but ideally someone could try the same setup that you have and see if the same error occurs. It might be an issue with fast_tls
or with rebar3
.
If anyone getting the same error you have to do following things
-
Check your local elixir version if you’re using asdf. It should be latest and don’t use 1.10.1 because it will get you some error.
-
Now do brew info openssl and you’ll get three variable basically which you need to set in a environment variable.
Let me know if you get any other error. Also do mix deps.clean --all and rm -rf build and install deps again.