forked from chenweihua/oceanbase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-dependencies.sh
26 lines (26 loc) · 1002 Bytes
/
install-dependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
sudo yum install lzo libaio-devel openssl-devel mysql-devel numactl-devel
sudo yum install -b test snappy t-csrd-tbnet-devel t_libeasy-devel tb-lua-dev t-db-congo-drcmessage
# install gtest
GTEST_SRC='http://googletest.googlecode.com/files/gtest-1.6.0.zip'
wget $GTEST_SRC -O gtest-1.6.0.zip
unzip ./gtest-1.6.0.zip
cd gtest-1.6.0
./configure
make
sudo cp -rf include/* /usr/local/include/
sudo ./libtool --mode=install cp lib/libgtest.la /usr/local/lib/
cd ..
# install gmock
GMOCK_SRC='http://googlemock.googlecode.com/files/gmock-1.6.0.zip'
wget $GMOCK_SRC -O gmock-1.6.0.zip
unzip ./gmock-1.6.0.zip
cd gmock-1.6.0
./configure
make
sudo cp -rf include/* /usr/local/include/
sudo ./libtool --mode=install cp lib/libgmock.la /usr/local/lib/
cd ..
# done
echo "Add the follow lines into your .bashrc:"
echo -e "\nexport TBLIB_ROOT=/opt/csr/common\nexport EASY_ROOT=/usr\nexport EASY_LIB_PATH=/usr/lib64\nexport DRC_ROOT=/home/ds\nexport LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/home/ds/lib64/"