Last active
September 30, 2015 12:49
-
-
Save Jimmy-Xu/fda03237771ce3d286f0 to your computer and use it in GitHub Desktop.
scribe installation script on CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#install scribe in docker container | |
echo '==================================================' | |
echo '===============Install necessary tools===============' | |
echo '==================================================' | |
yum update | |
yum install -y wget tar git make flex bison libtool autoconf automake openssl-devel libevent libevent-devel python-devel gcc-c++ byacc | |
yum install -y java-1.7.0-openjdk ant | |
yum install -y php-devel bzip2-devel | |
echo '==================================================' | |
echo '===============update autoconf===============' | |
echo '==================================================' | |
cd ~ | |
sudo rpm -e --nodeps `rpm -qf /usr/bin/autoconf` | |
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz | |
tar xzf autoconf-2.69.tar.gz | |
cd autoconf-2.69/ | |
./configure | |
make | |
sudo make install | |
echo '==================================================' | |
echo '===============install boost===============' | |
echo '==================================================' | |
cd ~ | |
wget http://jaist.dl.sourceforge.net/project/boost/boost/1.45.0/boost_1_45_0.tar.gz | |
tar xzf boost_1_45_0.tar.gz | |
cd boost_1_45_0/ | |
./bootstrap.sh | |
./bjam install | |
echo '==================================================' | |
echo '===============install thrift===============' | |
echo '==================================================' | |
cd ~ | |
git clone https://github.com/apache/thrift.git | |
cd thrift/ | |
git fetch | |
git branch -a | |
git checkout 0.5.x | |
./bootstrap.sh | |
./configure --with-java | |
make | |
make install | |
cd lib/py/ | |
python setup.py install | |
echo '==================================================' | |
echo '===============install fb303===============' | |
echo '==================================================' | |
cd ~/thrift/contrib/fb303/ | |
./bootstrap.sh | |
./configure CPPFLAGS="-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H" | |
make | |
make install | |
cd py/ | |
python setup.py install | |
echo '==================================================' | |
echo '===============install scribe===============' | |
echo '==================================================' | |
cd ~ | |
git clone https://github.com/facebook/scribe.git | |
cd scribe/ | |
export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib | |
./bootstrap.sh | |
./configure CPPFLAGS="-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -DBOOST_FILESYSTEM_VERSION=2" LIBS="-lboost_system -lboost_filesystem" | |
make | |
make install | |
cd lib/py/ | |
python setup.py install | |
cd ~ | |
echo '==================================================' | |
echo '===================== Done! =======================' | |
echo '==================================================' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment