Skip to content

Commit

Permalink
Added build script for centos7.2
Browse files Browse the repository at this point in the history
Summary:
Tested build with clean VirtualBox VM using bento/centos-7.2 image
Closes facebook#131

Reviewed By: spalamarchuk

Differential Revision: D3462036

Pulled By: andreazevedo

fbshipit-source-id: 2ece3cefb936e7af106ff03f36b936f094a2d1d0
  • Loading branch information
Theo Najim authored and Facebook Github Bot 4 committed Jun 21, 2016
1 parent ace32d1 commit 0aab86c
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 0 deletions.
30 changes: 30 additions & 0 deletions mcrouter/scripts/install_centos_7.2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

set -ex

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

sudo yum install -y epel-release

sudo yum install -y \
autoconf \
binutils-devel \
bison \
boost-devel \
double-conversion-devel \
flex \
gcc-c++ \
gcc \
git \
gflags-devel \
glog-devel \
jemalloc-devel \
openssl-devel \
libtool \
libevent-devel \
make \
python-devel

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

./get_and_build_everything.sh centos-7.2 "$@"
1 change: 1 addition & 0 deletions mcrouter/scripts/order_centos-7.2/01_centos7_deps
1 change: 1 addition & 0 deletions mcrouter/scripts/order_centos-7.2/10_folly
1 change: 1 addition & 0 deletions mcrouter/scripts/order_centos-7.2/12_wangle
1 change: 1 addition & 0 deletions mcrouter/scripts/order_centos-7.2/15_fbthrift
1 change: 1 addition & 0 deletions mcrouter/scripts/order_centos-7.2/20_mcrouter
33 changes: 33 additions & 0 deletions mcrouter/scripts/recipes/centos7_deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash

source common.sh

pushd "$PKG_DIR"

# Required for Centos 7 build
#
# - epel repo has automake-1.13, automake-1.15 is needed for fbthrift build
# - base repo has cmake-2.8.11, cmake-2.8.12 is needed for wangle build
# - ragel centos7 rpm not found, need to build from source

sudo rpm -Uvh "https://kojipkgs.fedoraproject.org/packages/automake/1.15/1.fc22/noarch/automake-1.15-1.fc22.noarch.rpm"

for url in \
https://cmake.org/files/v2.8/cmake-2.8.12.2.tar.gz \
http://www.colm.net/files/ragel/ragel-6.8.tar.gz \
; do
pkg=$(basename "$url")
wget "$url" -O "$pkg"
tar xzf "$pkg"
pushd "${pkg%.tar.gz}"
if [ -f ./bootstrap ]; then
./bootstrap
elif [ -f ./configure ]; then
./configure
fi;
make
sudo make install
popd
done
popd

0 comments on commit 0aab86c

Please sign in to comment.