Sha256: 3d11ade4457d7f145e8a86b86141efc9e86f002b7db1838e693888fe84d3bbbf

Contents?: true

Size: 1.37 KB

Versions: 249

Compression:

Stored size: 1.37 KB

Contents

First, make sure you have Erlang installed, following the instructions on the
[Erlang][1] installation page as appropriate.
[1]: /languages/erlang

### Homebrew for Mac OS X

Update your Homebrew to latest:

```bash
$ brew update
```

Install LFE:

```bash
$ 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:

```bash
$ docker pull lfex/debian  # it will take a while...
[...]
``` 

Now let's run the LFE REPL inside the container:

```bash
$ docker run -i -t lfex/debian lfe
Erlang/OTP 19 [ert[...]

lfe >
```

And let's write some LFE to test it:

```bash
lfe > (* 7 4)
28
lfe > (lfe_io:format "hello world~n" ())
hello world
ok
```

Nice! Use `(exit)` or Ctrl-C (C-c) twice to exit.


### Installing from Source
Install your system's "developer tools" or "essential build packages", `git`
and Erlang's `erl`.

For example, on Ubuntu 14.04:

```bash
$ 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 ``lfe`` binary:

```bash
$ ./bin/lfe
```

Version data entries

249 entries across 249 versions & 1 rubygems

Version Path
trackler-2.2.1.78 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.77 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.76 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.75 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.74 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.73 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.72 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.71 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.70 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.69 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.68 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.67 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.66 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.65 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.64 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.63 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.62 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.61 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.60 tracks/lfe/docs/INSTALLATION.md
trackler-2.2.1.59 tracks/lfe/docs/INSTALLATION.md