You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: install.markdown
+28-27Lines changed: 28 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,10 @@ Install Elixir according to your operating system and tool of choice.
24
24
25
25
- Using [install scripts](#install-scripts)
26
26
27
-
- Using [Homebrew](https://brew.sh/):
27
+
- Using [Homebrew](https://brew.sh):
28
28
* Run: `brew install elixir`
29
29
30
-
- Using [Macports](https://www.macports.org/):
30
+
- Using [Macports](https://www.macports.org):
31
31
* Run: `sudo port install elixir`
32
32
33
33
- Using [version managers](#version-managers)
@@ -36,8 +36,6 @@ Install Elixir according to your operating system and tool of choice.
36
36
37
37
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).
38
38
39
-
#### Distributions
40
-
41
39
-**Arch Linux** (Community repository)
42
40
* Run: `pacman -S elixir`
43
41
@@ -53,24 +51,15 @@ Below we list steps for installing Elixir in different distributions. If your di
* 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`:
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
-
74
63
### BSD
75
64
76
65
- **FreeBSD**
@@ -97,13 +86,15 @@ Keep in mind that each Elixir version supports specific Erlang/OTP versions. [Se
97
86
98
87
- Using [install scripts](#install-scripts)
99
88
100
-
- Using [Scoop](https://scoop.sh/):
89
+
- Using [Scoop](https://scoop.sh):
101
90
* Install Erlang: `scoop install erlang`
102
91
* Install Elixir: `scoop install elixir`
103
92
104
-
- Using [Chocolatey](https://community.chocolatey.org/):
93
+
- Using [Chocolatey](https://community.chocolatey.org):
105
94
* Install Elixir (installs Erlang as a dependency): `choco install elixir`
106
95
96
+
- Using [version managers](#version-managers)
97
+
107
98
### Raspberry Pi and embedded devices
108
99
109
100
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
149
140
150
141
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.
151
142
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
+
152
153
## Precompiled package
153
154
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`:
@@ -178,18 +179,18 @@ For a list of all builds, use:
178
179
179
180
## Compiling from source
180
181
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.
182
183
183
184
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)).
184
185
185
186
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.
186
187
187
188
In case you are feeling a bit more adventurous, you can also compile from main:
@@ -214,7 +215,7 @@ On Windows, there are [instructions for different versions](http://www.computerh
214
215
215
216
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:
0 commit comments