First, make sure you have Erlang installed, following the instructions on the Erlang installation page as appropriate.
Homebrew for Mac OS X
Update your Homebrew to latest:
$ brew update
$ brew install lfe
Using a docker container
If you just want to quickly take a look at LFE without polluting your system with new packages, you can just pull a docker container with LFE preinstalled.
Let's fetch a Debian image with LFE:
Now let's run the LFE REPL inside the container:
And let's write some LFE to test it:
(exit) or Ctrl-C (C-c) twice to exit.
Installing from Source
Install your system's "developer tools" or "essential build packages",
For example, on Ubuntu 14.04:
$ sudo apt-get install build-essentials git erlang erlang-base-hipe ```. Afterwards you can download and build LFE with the following: ```bash $ git clone https://github.com/rvirding/lfe $ cd lfe $ make $ make install
Once you have LFE compiled, you can start up the REPL (interactive session)
by executing the
Help us explain this better! File a GitHub issue at https://github.com/exercism/lfe/issues if you have suggestions, or submit a patch with improvements to the https://github.com/exercism/lfe/blob/master/docs/INSTALLATION.md file.