#!/usr/bin/env bash

set -ex

[ -n "$1" ] || ( echo "Install dir missing"; exit 1 )

sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x

sudo apt-get update

sudo apt-get install -y \
    autoconf \
    binutils-dev \
    bison \
    cmake \
    flex \
    g++ \
    g++-5 \
    gcc \
    git \
    libboost1.54-all-dev \
    libdouble-conversion-dev \
    libevent-dev \
    libgflags-dev \
    libgoogle-glog-dev \
    libjemalloc-dev \
    libsodium-dev \
    libssl-dev \
    libtool \
    make \
    pkg-config \
    python-dev \
    ragel \
    software-properties-common

# sudo apt-get upgrade -yq cmake

cd "$(dirname "$0")" || ( echo "cd fail"; exit 1 )

export CC="gcc-5"
export CXX="g++-5"

./get_and_build_everything.sh ubuntu-14.04 "$@"

#!/usr/bin/env bash

set -ex

[ -n "$1" ] || ( echo "Install dir missing"; exit 1 )

sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
sudo add-apt-repository -y ppa:chris-lea/libsodium

sudo apt-get update

sudo apt-get install -y \
    autoconf \
    binutils-dev \
    bison \
    cmake \
    flex \
    g++ \
    g++-5 \
    gcc \
    git \
    libboost1.54-all-dev \
    libdouble-conversion-dev \
    libevent-dev \
    libgflags-dev \
    libgoogle-glog-dev \
    libjemalloc-dev \
    libsodium-dev \
    libssl-dev \
    libtool \
    make \
    pkg-config \
    python-dev \
    ragel \
    software-properties-common

# sudo apt-get upgrade -yq cmake

cd "$(dirname "$0")" || ( echo "cd fail"; exit 1 )

export CC="gcc-5"
export CXX="g++-5"

./get_and_build_everything.sh ubuntu-14.04 "$@"

Fix opensource build on ubuntu 14
Fix opensource build on ubuntu 14

Summary: Ubuntu does not provide libsodium-dev by default.

Reviewed By: orishu

Differential Revision: D10390046

fbshipit-source-id: e76480397324bff89694d9df847953c0edce2607
