In order to install LFE, you'll need to make sure you have the prerequisites installed. These include:
- Erlang itself
- make and related developer tools
First and foremost, you will need Erlang installed.
- On Mac OS X, this is as easy as executing
brew install erlang
- On Ubuntu
apt-get install erlang.
For those who have the need of installing multiple versions of Erlang, there is also the kerl project.
In order to use LFE, you will be calling
make to compile it. To cover your bases, you'll want to make sure you have the basic development tools installed for your platform.
$ sudo apt-get install build-essential
$ sudo yum groupinstall "Development Tools"
For Mac OS X, you will need to install the "Developer Tools" from the AppStore.
You will also need
git to continue with this quick-start. If
git doesn't come installed on your system and it wansn't installed as part of your systems basic development tools package, you can download it here
or install it using your favourite OS package manager.
Getting and Compiling LFE
The most recent version of LFE is always available here:
erl in your
$PATH, let's download LFE and the compile it:
$ git clone https://github.com/rvirding/lfe.git $ cd lfe $ make
LFE is just a set of Erlang libraries, so like an Erlang project, the source code needs to be compiled to
.beam files. Running
make in the
lfe directory will do that. At which point, everything is ready to go!