I am having a problem over here and would appreciate any help or pointers. I am using asdf version manager to use elixir v1.4.4 with erlang-OTP v19.3 for a project. It could be a problem related to asdf, however I wouldn’t know. I would appreciate your help to determine the root of this problem. I am running Linux, ParrotOS (Debian based) 4.7 to be specific. I have had the newest version of elixir/erlang running on this machine for a month ago. I am trying to get used to version managers and use the project specified setup.
mix local.hex
** (MatchError) no match of right hand side value: {:error, {:ssl, {‘no such file or directory’, ‘ssl.app’}}}
(mix) lib/mix/utils.ex:432: Mix.Utils.read_httpc/1
(mix) lib/mix/utils.ex:376: Mix.Utils.read_path/2
(mix) lib/mix/local.ex:139: Mix.Local.read_path!/2
(mix) lib/mix/local.ex:118: Mix.Local.find_matching_versions_from_signed_csv!/2
(mix) lib/mix/tasks/local.hex.ex:29: Mix.Tasks.Local.Hex.run/1
(mix) lib/mix/task.ex:300: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:58: Mix.CLI.run_task/2
Have you installed it prior to compiling OTP or only afterwards?
It needs to be available on your system when you do asdf install erlang ....
I can’t say though whether or not that is the correct package. My Linux distribution bundles headers and libraries in the same package and does not do this artificial separation that many of the mainstream distros do.
If you have installed the development headers only after you have installed Erlang, you’ll need to remove it and reinstall using asdf.
I had it before installing erlang. mythicalprogrammer shared a stockoverflow link that seems to state my problem. I have trouble uninstalling erlang right now, I will give that a try once I can. Thank you for your time.
Sorry for the delay. Defining openssl path with “–with-ssl” flag didn’t solve my problem. After further digging, I found out that erlang 19.x doesn’t work with openssl 1.1.x. I found some patch files for making erlang 19.x work with openssl 1.1.x. I will give that a try. Thank you for your help.
Patching erlang 19.3 up to be used with openssl 1.1.x didn’t work for me.
This is my solution:
//install openssl 1.0
curl https://www.openssl.org/source/openssl-1.0.2r.tar.gz | tar xfz - && cd openssl-1.0.2r && ./config --prefix=/usr/local/openssl-1.0.2r -fpic && make && sudo make install && cd .. && rm -rf openssl-1.0.2r creates=/usr/local/openssl-1.0.2r
//tell asdf/kerl where to find it (the “–with-ssl” flag)
KERL_CONFIGURE_OPTIONS="–disable-debug --without-javac --with-ssl=/usr/local/openssl-1.0.2r"
I am running Ubuntu 18.04 (on windows subsystem linux) with all the current updates.
I hope this will be usefull for others as well. I wan’t to thank mythicalprogrammer and NobbZ for their help. I wouldn’t know where to start otherwise.