Hi everyone, I am trying to install the :ex_doc library,but I get the an error, I am used asdf to install elixir on my linux machine. I am using elixir 1.3.4 and Erlang/OTP 19. This is the error:
Could not find Hex, which is needed to build dependency :ex_doc
Shall I install Hex? (if running non-interactively, use: “mix local.hex --force”) [Yn]
** (MatchError) no match of right hand side value: {:error, {:ssl, {‘no such file or directory’, ‘ssl.app’}}}
(mix) lib/mix/utils.ex:420: Mix.Utils.read_httpc/1
(mix) lib/mix/utils.ex:364: 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/dep/loader.ex:143: Mix.Dep.Loader.with_scm_and_app/4
(mix) lib/mix/dep/loader.ex:99: Mix.Dep.Loader.to_dep/3
(elixir) lib/enum.ex:1184: Enum."-map/2-lists^map/1-0-"/2
The version that is installed in that blog post is old. Current version is 0.7.something, though the post installs 0.6.something.
Anyway, for the SSL support in erlang to be available, you need to install SSL development headers first. How this is done depends on your Linux distribution. Can you tell which you are using?
Yep, also make sure asdf itself is the latest version. Then do asdf plugin update --all (assuming the plugins for Erlang and Elixir are already installed!) and then install a bit bigger version, like 1.7.