1 Going Plaid
This guide will give you what you need in order to jump into LFE at ludicrous speed.
For a more gradual introduction (with a bit more Erlang) and for something that's going to give you time to see the stars, checkout the User Guide.
For a quick introduction to LFE,
lfetool has everything you need. The
Quick Start guide will use it almost exclusively -- all in the interst of
sending you a week and a half into the future.
Where appropriate, we will point you to other resources that provide more details.
Let's get started: install
$ curl -o ./lfetool https://raw.github.com/lfe/lfetool/master/lfetool $ bash lfetool install /usr/local/bin
Note that this does require the most recent release of Erlang right now (r16). (We are working towards full support for r15 and will update this Quick Start when that has landed.)
If you need
sudo to put the script there, be sure to set the ownership:
$ chown $USER /usr/local/bin/lfetool
That way you'll be able to use the
update command to get the latest version
lfetool in the future.
1.2 Other Dependencies
First and foremost, you will need Erlang installed. On Mac OS X, this is as
easy as executing
brew install erlang or on Ubuntu
erlang. You can also install Erlang from the various pre-built packages
provided on the official Erlang
download page or from the
Solutions page (supports many more package types).
Personally, we prefer to manage our Erlang builds and installations with
This allows for multiple versions of Erlang to be installed
on your system simultaneously. For more information about using
kerl in LFE
projects, be sure to visit the "kerl" section of the
You will be using
rebar to build LFE under the covers as well as managing
dependencies for your projects, so go ahead and get that set up:
You will also need to download git or install it using your favorite package manager.
Ready for some LFE? Next you'll learn how to create a new LFE project with just one command ...