Skip to content

Instantly share code, notes, and snippets.

@ipoval
Created February 22, 2017 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipoval/09b1a15f6b3aa1cfbe83980d65fd78ed to your computer and use it in GitHub Desktop.
Save ipoval/09b1a15f6b3aa1cfbe83980d65fd78ed to your computer and use it in GitHub Desktop.
mcrouter on alpione
Install stuff from here:
https://wiki.alpinelinux.org/wiki/How_to_get_regular_stuff_working
apk add --no-cache linux-headers
apk add --no-cache jemalloc-dev
apk add --no-cache boost-thread
apk add --no-cache boost-dev
apk add --no-cache boost-filesystem
apk add --no-cache boost-program_options
apk add --no-cache boost-regex
apk add --no-cache automake
echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
apk add --no-cache glog-dev
apk add --no-cache glog
curl -L https://github.com/gflags/gflags/archive/v2.2.0.tar.gz | tar xvz
...
apk add --no-cache --virtual .build-deps \
gcc \
libc-dev \
libevent-dev \
linux-headers \
make \
perl \
tar \
export MCROUTER_DIR=/usr/local/mcrouter
export MCROUTER_REPO=https://github.com/facebook/mcrouter.git
export MCROUTER_VERSION="0.15"
export MCROUTER_SHA=f1f40cc225a56369f14d3b5f39ef5d4f122dda3f
mkdir /home/mcrouter-build
./scripts/install_ubuntu_14.04.sh /home/mcrouter-build
/home/gflags-2.2.0/build/include
/home/gflags-2.2.0/build/lib
CPPFLAGS="-I/home/gflags-2.2.0/build/include $CPPFLAGS"
LDFLAGS="-L/home/gflags-2.2.0/build/lib"
mv /usr/lib/libiberty.a /tmp/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment