Skip to content
Pieter Noordhuis edited this page Aug 8, 2017 · 1 revision

CentOS

Compile Gloo on a vanilla CentOS instance.

Prerequisites

These are the same for CentOS 6 and CentOS 7.

# Install basic development
sudo yum groupinstall -y 'Development Tools'
sudo yum install -y git cmake

# Install GCC 4.9
sudo yum install -y centos-release-scl
sudo yum install -y devtoolset-3-gcc-c++

git clone --recursive https://github.com/facebookincubator/gloo

Build

# Enable devtoolset-3 to make GCC 4.9 default
. /opt/rh/devtoolset-3/enable

# Build Gloo
cd gloo
mkdir -p build
cd build
cmake ../ -DBUILD_TEST=ON
make

# Run tests
./gloo/test/test
Clone this wiki locally