# Compile from source #

## Get the build dependencies ##

Install the dependencies:

```bash
sudo apt-get install build-essential protobuf-compiler python \
                     libprotobuf-dev libcurl4-openssl-dev \
                     libboost-all-dev libncurses5-dev \
                     libjemalloc-dev wget
```

## Get the source code ##

Download and extract the archive:

```bash
wget http://download.rethinkdb.com/dist/rethinkdb-{{site.version.full}}.tgz
tar xf rethinkdb-{{site.version.full}}.tgz
```

## Build the server ##

Kick off the build process:

```bash
cd rethinkdb-{{site.version.full}}
./configure --allow-fetch
make
sudo make install
```

If you're compiling on a multicore or multiprocessor machine, you may
be able to use `make -j #` to speed up the build process, where '#' is
the total number of CPU cores. (On a 4-core machine, you can use `make
-j 4`.) However, some older versions of `make` will produce a
segmentation fault error when using `-j` with RethinkDB; if that
happens, just run `make` without the `-j` option.

# Compile from source #

## Get the build dependencies ##

Install the dependencies:

```bash
sudo apt-get install build-essential protobuf-compiler python \
                     libprotobuf-dev libcurl4-openssl-dev \
                     libboost-all-dev libncurses5-dev \
                     libjemalloc-dev wget m4
```

## Get the source code ##

Download and extract the archive:

```bash
wget http://download.rethinkdb.com/dist/rethinkdb-{{site.version.full}}.tgz
tar xf rethinkdb-{{site.version.full}}.tgz
```

## Build the server ##

Kick off the build process:

```bash
cd rethinkdb-{{site.version.full}}
./configure --allow-fetch
make
sudo make install
```

If you're compiling on a multicore or multiprocessor machine, you may
be able to use `make -j #` to speed up the build process, where '#' is
the total number of CPU cores. (On a 4-core machine, you can use `make
-j 4`.) However, some older versions of `make` will produce a
segmentation fault error when using `-j` with RethinkDB; if that
happens, just run `make` without the `-j` option.

Add m4 to dependency install list
Add m4 to dependency install list

m4 wasn't in my clean install of Ubuntu 15 server, causing `sudo make install` to fail.  `sudo apt-get install m4` fixed, the problem, so I assume nothing else is pulling it in and bringing it in with the other build dependencies will fix the problem.