Skip to content

mcrouter installation

alikhtarov edited this page Sep 15, 2014 · 13 revisions

##Automatic installation

TODO!!!: use script from D1377312 (once it is committed).

##Manual installation

###Install

 #prime sudo
 sudo echo

 sudo yum install libopenssl-devel libcap-devel libevent-devel boost-devel \
 gtest-devel glog-devel gflags-devel snappy-devel zlib scons flex bison \
 krb5-devel binutils-devel

###Download and install

 CPPFLAGS="-I~/fbcode/folly" ./configure
  • Build and install it. In thrift subfolder run
 autoreconf --install
 ./configure
 make
 sudo make install

###Build mcrouter

Clone mcrouter source code from https://github.com/facebook/mcrouter. In mcrouter folder run

 autoreconf --install
 ./configure
 make

###Run unit tests (optional)

Run

 make check

If you have "symbol not found" errors from gtest, build it and put libgtest.a/libgtestmain.a into you LD_LIBRARY_PATH. To build gtest:

 make
  • Rename gtest.a to libgtest.a; gtest_main.a to libgtestmain.a
  • Don't forget to add libgtest.a and libgtestmain.a to your LD_LIBRARY_PATH