In order to run Elixir, you need to set it up locally on your system.
To install Elixir, you'll first need erlang. On some platforms, elixir
packages come with erlang in them.
If you have any problems while installing it, you can check this page for more info.
Installing Elixir
Windows setup
To install elixir on windows, download installer from https://repo.hex.pm/elixir-websetup.exe and simply click next through all steps. You'll have it on your local system.If you have any problems while installing it, you can check this page for more info.
Mac Setup
If you have homebrew installed, update homebrew to latest usingbrew updateThen install elixir using:
brew install elixir
Ubuntu/Debian setup
Add Erlang Solutions repo:wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb sudo apt-get updateInstall the Erlang/OTP platform and all of its applications:
sudo apt-get install esl-erlangInstall Elixir:
sudo apt-get install elixir
Other Linux Distros
If you have any other linux distribution, please visit this page to set up elixir on your local system.Testing the setup
To check if elixir installed on your system correctly, Open your terminal and enter iex in it. It will open the interactive elixir shell like the following:Erlang/OTP 19 [erts-8.0] [source-6dc93c1] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] Interactive Elixir (1.3.1) - press Ctrl+C to exit (type h() ENTER for help) iex(1)>You now have set up elixir successfully on your system and are ready to start learning Elixir!
No comments:
Post a Comment