I use brew install elixir to install elixir on Mac. It works for the released version which is v1.5.2 at this moment. How can I install the dev version like Elixir >= 1.6.0-dev on Mac?
I use brew install elixir to install elixir on Mac. It works for the released version which is v1.5.2 at this moment. How can I install the dev version like Elixir >= 1.6.0-dev on Mac?
Since you're already using Homebrew, the simplest way to install the latest dev version is to use --HEAD:
brew install elixir --HEAD
This will fetch the latest version from the git repo at https://github.com/elixir-lang/elixir.git and make and install that. You can see exactly what it does by reading its recipe using brew cat elixir.
https://github.com/aabrook/elixir/blob/master/Dockerfile
FROM erlang:20
RUN git clone https://github.com/elixir-lang/elixir.git
RUN cd elixir && make clean compile
ENV PATH=/elixir/bin:$PATH
CMD ["iex"]
kiex install master
Using kiex has the benefit of being able to jump to the source of std library functions when using the elixir-ls tool from vscode, see this blog post