2. Installation

There are currently no binary packages of Meer available. However, installation from source is pretty straightforward.

2.1. Prerequisites

Before compiling and installing Meer, you will need to determine where you want your data to reside. Currently, Meer supports MariaDB, MySQL and PostgreSQL. In order to build Meer, you will need one or more of these installed with all development files. For example, Ubuntu/Debian systems can install via:

apt-get install mariadb-dev # For MariaDB
apt-get install libmysqlclient-dev # For MySQL
apt-get install libpq-dev # For PostgreSQL

Meer uses a YAML configuration file. This means that Meer will need libyaml installed on the system. On Ubuntu/Debian systems, this can be installed via:

apt-get install libyaml-dev

Meer uses JSON-C to parse JSON output from Sagan and Suricata. On Ubuntu/Debian systems, this prerequisite can be installed via:

apt-get install libjson-c-dev

2.2. Source

Installation from source distributions files gives

Basic steps:

git clone https://github.com/beave/meer
cd meer
./autogen.sh
./configure
make
sudo make install

By default, this will install Meer into the /usr/local/bin/ directory with the default Meer configuration file in the /usr/local/etc/ directory. By default, Meer will compile with MySQL/MariaDB support.

2.2.1. Common configure options

--prefix=/usr/

Installs the Meer binary in the /usr/bin. The default is /usr/local/bin.

--sysconfdir=/etc

Installs the Meer configuration file (meer.yaml) in the /etc directory. The default is /usr/local/etc/.

--disable-mysql

This flag disables MySQL or MariaDB support. By default –enable-mysql is used.

--enable-postgresql

This flag enables PostgreSQL support. By default –disable-postgresql is used.

--with-libjsonc-libraries

This option points Meer to where the json-c libraries reside.

--with-libjsonc-includes

This option points Meer to where the json-c header files reside.

--with-libyaml_libraries

This option points Meer to where the libyaml files reside.

--with-libyaml-includes

This option points Meer to where the libyaml header files reside.

--enable-redis

This option enables redis output support. It requires “hiredis” to be installed on the target.