Chapter 2
Installation

LibreS3 is regularly tested on Linux and FreeBSD. We recommend using the binary packages from http://www.skylable.com/download if your platform is supported.

2.1 Docker

Stable releases of LibreS3 are available as tags on the Docker hub, e.g.:

  docker pull skylable/libres3:release-1.3

Latest master is always available as:

  docker pull skylable/libres3:latest

Follow the instructions on the Docker hub for configuring and running this container: http://hub.docker.com/r/skylable/libres3

2.2 Binary packages

Debian Wheezy and Jessie

Add the following entry to /etc/apt/sources.list.d/skylable.list:

deb http://cdn.skylable.com/debian wheezy main

then run the following commands:

# curl https://pgp.mit.edu/pks/lookup?op=get&search=0x5377E192B7BC1D2E | sudo apt-key add - 
# apt-get install libres3

CentOS 6/7

Create the file /etc/yum.repos.d/skylable-sx.repo with this content:

[skylable-sx] 
name=Skylable SX 
baseurl=http://cdn.skylable.com/centos/$releasever/$basearch 
enabled=1 
gpgcheck=0

then execute:

# yum install libres3

Fedora 21+

Create the file /etc/yum.repos.d/skylable-sx.repo with this content:

[skylable-sx] 
name=Skylable SX 
baseurl=http://cdn.skylable.com/fedora/$releasever/$basearch 
enabled=1 
gpgcheck=0

then execute:

# yum install libres3

2.3 Source code

On most Unix platforms you can compile LibreS3 from source. You will need the following packages to be installed together with their development versions:

For example, on Debian run:

# apt-get install ocaml-native-compilers camlp4-extra libssl-dev libpcre3-dev zlib1g-dev\ 
pkg-config make m4 libev-dev

On Fedora run:

# yum install ocaml /usr/bin/camlp4of /usr/bin/camlp4rf /usr/bin/camlp4 openssl-devel\ 
pcre-devel zlib-devel pkgconfig make m4 ncurses-devel libev-devel

Compilation

Follow the standard installation procedure to install LibreS3 into the default location (/usr/local):

$ ./configure && make && make check 
# make install

The rest of the manual assumes that LibreS3 was installed from a binary package, so some paths may be different.

Note: On OpenSolaris/OmniOS you need some additional flags:

$ CPPFLAGS=-m64 ./configure --destdir=${DESTDIR} && make && make check 
# make install