Kiex allows you to easily build and switch between different Elixir versions.
It supports setting the default (global) Elixir version as well as per shell/project versions.
Everything is self-contained under ~/.kiex.
Usage is based lightly on RVM, kerl, and rbenv.
NOTE: Some Erlang source builds are broken. See below.
Prerequisites: bash, curl, erlang, git, make, openssl
Run the following to get up and running:
\curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/install | bash -s
which will install in $HOME/.kiex.
List installed versions
kiex list
List known releases
kiex list known
(or kiex list releases
)List current branches
kiex list branches
Install a known release or branch.
kiex install 0.12.5
Use specific elixir version
kiex use 0.12.5
-- Sets the elixir version for current shell.Create an alias for the specified elixir version
kiex alias 0.12.5 0.12
Use sub-shell with specific elixir version
kiex shell 0.12.5
-- Starts sub-shell with given elixir version. Exiting shell goes to default.Set default elixir version
kiex default 0.12.5
Uninstall kiex and elixirs
kiex implode
-- This removes all versions of elixir installed by kiex as well as all kiex componentsUpgrade kiex
kiex selfupdate
-- pull down latest updates for kiex
After installing your preferred version of elixir and setting it as your default you can use kiex scripts to put your default elixir bin into your path. One way to do this is to add the following line into your rc file:
[[ -s "$HOME/.kiex/scripts/kiex" ]] && source "$HOME/.kiex/scripts/kiex"
How is it like exenv (rbenv)?
How is it not like exenv?
How is it like Kerl?
How is it not like Kerl?
How is it like RVM?
How is it not like RVM?
Operating Systems:
Shells:
Erlang installs:
Alternatives:
Related tools:
Some erlang builds (including default kerl) are unusuable on current CentOS and Fedora distros as a result of an OpenSSL update. -- 2014/03/31
Various bugs reported:
A update to OTP crypto https://github.com/RoadRunnr/otp/commit/8837c1be2ba8a3c123df3f5a87003daa9aac6539
See LICENSE file