Skip to content
David Whitlock edited this page Jan 29, 2016 · 19 revisions

Elixir version 1.0 or later and Erlang/OTP version 17.0 or later.

You also need to have a C compiler, such as gcc, installed. For more information about installing the C dependencies, please read the directions below for the operating system you are using.

Linux

Ubuntu / Debian

We recommend downloading Erlang from erlang solutions, as the version of Erlang in the Ubuntu repositories is usually quite old.

Make sure you have the build-essential package installed. Also erlang-dev may be needed if you have installed Erlang from the Ubuntu repositories.

Mac OS X

You need to have gcc and make installed. Try running the commands gcc --version and / or make --version. If these programs are not installed, you will be prompted to install them.

If you are using El Capitan, you also need to deactivate the new rootless mode by running the following commands:

sudo nvram boot-args="rootless=0"; osascript -e 'tell app "loginwindow" to «event aevtrrst»'
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2

Windows

Instructions for compiling on Windows 10:

  • Install VS (Community Ed. is fine)
  • Go to File > New > Project
  • Choose C++, it will prompt to install the module. Close VS
  • Go to search > "Developer Command Prompt for VS2015"
  • cd to the VC directory, run vcvarsall.bat amd64 -- this must be run every time you try to compile comeonin
  • cd over to your project, mix deps.get, mix deps.compile

See: https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx for more details about enabling a 64-bit build.

See: https://msdn.microsoft.com/en-us/library/60k1461a.aspx for more details about C / C++ support in Visual Studio 2015.