Skip to content

Commit a9131ff

Browse files
authored
Add link to mise (#1824)
Also updates some of the other links, fixes some of the markdown blocks, and moves the version managers section into a level two heading
1 parent ea969f6 commit a9131ff

1 file changed

Lines changed: 28 additions & 27 deletions

File tree

install.markdown

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ Install Elixir according to your operating system and tool of choice.
2424

2525
- Using [install scripts](#install-scripts)
2626

27-
- Using [Homebrew](https://brew.sh/):
27+
- Using [Homebrew](https://brew.sh):
2828
* Run: `brew install elixir`
2929

30-
- Using [Macports](https://www.macports.org/):
30+
- Using [Macports](https://www.macports.org):
3131
* Run: `sudo port install elixir`
3232

3333
- Using [version managers](#version-managers)
@@ -36,8 +36,6 @@ Install Elixir according to your operating system and tool of choice.
3636

3737
Below we list steps for installing Elixir in different distributions. If your distribution is not listed or the steps below do not work, you may consider using [version managers](#version-managers).
3838

39-
#### Distributions
40-
4139
- **Arch Linux** (Community repository)
4240
* Run: `pacman -S elixir`
4341

@@ -53,24 +51,15 @@ Below we list steps for installing Elixir in different distributions. If your di
5351
* Run: `guix package -i elixir`
5452

5553
- **Ubuntu**
56-
* Use [install scripts](#install-scripts) (or alternatively [version managers](#version-managers))
54+
* Using [install scripts](#install-scripts)
5755
* The packages in `apt` tend to lag several versions behind. You may use [RabbitMQ Packages](https://launchpad.net/~rabbitmq) outlined below, which are likely newer than `apt`:
5856

59-
```bash
60-
$ sudo add-apt-repository ppa:rabbitmq/rabbitmq-erlang
61-
$ sudo apt update
62-
$ sudo apt install git elixir erlang
57+
```sh
58+
sudo add-apt-repository ppa:rabbitmq/rabbitmq-erlang
59+
sudo apt update
60+
sudo apt install git elixir erlang
6361
```
6462

65-
#### Version managers
66-
67-
There are many tools that allow developers to install and manage multiple Erlang and Elixir versions. They are useful if you have multiple projects running on different Elixir or Erlang versions, can't install Erlang or Elixir as mentioned above or if the version provided by your package manager is outdated. Here are some of those tools:
68-
69-
* [asdf](https://github.com/asdf-vm/asdf) - install and manage different [Elixir](https://github.com/asdf-vm/asdf-elixir) and [Erlang](https://github.com/asdf-vm/asdf-erlang) versions
70-
* [kerl](https://github.com/kerl/kerl) - install and manage different Erlang versions
71-
72-
Keep in mind that each Elixir version supports specific Erlang/OTP versions. [See the supported versions alongside our docs](/docs).
73-
7463
### BSD
7564

7665
- **FreeBSD**
@@ -97,13 +86,15 @@ Keep in mind that each Elixir version supports specific Erlang/OTP versions. [Se
9786

9887
- Using [install scripts](#install-scripts)
9988

100-
- Using [Scoop](https://scoop.sh/):
89+
- Using [Scoop](https://scoop.sh):
10190
* Install Erlang: `scoop install erlang`
10291
* Install Elixir: `scoop install elixir`
10392

104-
- Using [Chocolatey](https://community.chocolatey.org/):
93+
- Using [Chocolatey](https://community.chocolatey.org):
10594
* Install Elixir (installs Erlang as a dependency): `choco install elixir`
10695

96+
- Using [version managers](#version-managers)
97+
10798
### Raspberry Pi and embedded devices
10899

109100
To build and package an Elixir application, with the whole operating system, and burn that into a disk or deploy it overwhere, [check out the Nerves project](https://www.nerves-project.org).
@@ -149,9 +140,19 @@ iex.bat
149140

150141
You may want to [set the $PATH environment variable](#setting-path-environment-variable) for your whole system. Use `install.sh --help` or `install.bat --help` to learn more about available arguments and options.
151142

143+
## Version managers
144+
145+
There are many tools that allow developers to install and manage multiple Erlang and Elixir versions. They are useful if you have multiple projects running on different Elixir or Erlang versions, can't install Erlang or Elixir as mentioned above or if the version provided by your package manager is outdated. Here are some of those tools:
146+
147+
* [asdf](https://asdf-vm.com) - install and manage different [Elixir](https://github.com/asdf-vm/asdf-elixir) and [Erlang](https://github.com/asdf-vm/asdf-erlang) versions
148+
* [mise](https://mise.en.dev) - install and manage different Elixir and Erlang versions
149+
* [kerl](https://github.com/kerl/kerl) - install and manage different Erlang versions
150+
151+
Keep in mind that each Elixir version supports specific Erlang/OTP versions. [See the supported versions alongside our docs](/docs).
152+
152153
## Precompiled package
153154
154-
Elixir provides a precompiled package for every release. First [install Erlang](/install.html#installing-erlang) and then download the appropriate precompiled Elixir below. You can consult your Erlang/OTP version by running `erl -s halt`:
155+
Elixir provides a precompiled package for every release. First [install Erlang](#installing-erlang) and then download the appropriate precompiled Elixir below. You can consult your Erlang/OTP version by running `erl -s halt`:
155156
156157
{% for otp_version in stable.otp_versions %}
157158
* [Elixir {{ stable.version }} on Erlang/OTP {{ otp_version }}](https://github.com/elixir-lang/elixir/releases/download/v{{ stable.version }}/elixir-otp-{{ otp_version }}.zip){% endfor %}
@@ -178,18 +179,18 @@ For a list of all builds, use:
178179

179180
## Compiling from source
180181

181-
You can download and compile Elixir in few steps. The first one is to [install Erlang](/install.html#installing-erlang). You will also need [make](https://www.gnu.org/software/make/) available.
182+
You can download and compile Elixir in few steps. The first one is to [install Erlang](#installing-erlang). You will also need [make](https://www.gnu.org/software/make/) available.
182183

183184
Next you should download source code ([.zip](https://github.com/elixir-lang/elixir/archive/v{{ stable.version }}.zip), [.tar.gz](https://github.com/elixir-lang/elixir/archive/v{{ stable.version }}.tar.gz)) of the [latest release](https://github.com/elixir-lang/elixir/releases/tag/v{{ stable.version }}), unpack it and then run `make` inside the unpacked directory (note: if you are running on Windows, [read this page on setting up your environment for compiling Elixir](https://github.com/elixir-lang/elixir/wiki/Windows)).
184185

185186
After compiling, you are ready to run the elixir and `iex` commands from the bin directory. It is recommended that you [add Elixir's bin path to your PATH environment variable](#setting-path-environment-variable) to ease development.
186187
187188
In case you are feeling a bit more adventurous, you can also compile from main:
188189
189-
```bash
190-
$ git clone https://github.com/elixir-lang/elixir.git
191-
$ cd elixir
192-
$ make clean compile
190+
```sh
191+
git clone https://github.com/elixir-lang/elixir.git
192+
cd elixir
193+
make clean compile
193194
```
194195
195196
## Installing Erlang
@@ -214,7 +215,7 @@ On Windows, there are [instructions for different versions](http://www.computerh
214215

215216
On Unix systems, you need to [find your shell profile file](https://unix.stackexchange.com/a/117470/101951), and then add to the end of this file the following line reflecting the path to your Elixir installation:
216217

217-
```bash
218+
```sh
218219
export PATH="$PATH:/path/to/elixir/bin"
219220
```
220221

0 commit comments

Comments
 (0)