tfs-stable-2.0 自动安装 centos5.4 脚本

4 篇文章 0 订阅

#!/bin/bash
# by chuantong.huang@gmail.com 2012-08-21


mkdir tfs-2.0-build
cd tfs-2.0-build
yum install zlib -y
yum install readline-devel.x86_64 -y
#yum install ncurses-devel.x86_64 -y
#yum install pam-devel.x86_64 -y
yum install e4fsprogs-devel.x86_64 -y


if [! -f "gtest-1.5.0.zip"]; then
    wget http://googletest.googlecode.com/files/gtest-1.5.0.zip
    unzip gtest-1.5.0.zip
    cd gtest-1.5.0
    ./configure
    make -j 4
    make install
    cd ..
fi 

if [! -d "tb-common-utils"]; then
    svn export http://code.taobao.org/svn/tb-common-utils/trunk/ tb-common-utils
    cd tb-common-utils
    export TBLIB_ROOT=/usr/local/tfs-common-utils
    sh build.sh
    cd ..
if 

#if [! -f "util-linux-2.22-rc1.tar.gz"]; then 
#    wget http://www.kernel.org/pub/linux/utils/util-linux/v2.22/util-linux-2.22-rc1.tar.gz
#    tar -xvf util-linux-2.22-rc1.tar.gz
#    cd util-linux-2.22-rc1
#    ./configure
#    make -j 4 && make install
#    cd ..
#fi

if [! -f "mysql-5.1.65.tar.gz"]; then
    wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.65.tar.gz
    tar -xvf mysql-5.1.65.tar.gz
    ./configure --without-server
    make -j 4 && make install
    cd ..
fi

if[!-d "/usr/local/tfs-2.0"]; then
    svn export http://code.taobao.org/svn/tfs/branches/stable-2.0 tfs-statble-2.0
    cd tfs-statble-2.0/
    sh build.sh init
    ./configure --prefix=/usr/local/tfs-2.0  \
       --includedir=/usr/local/tfs-common-utils/include/tbsys \
       --libdir=/usr/local/tfs-common-utils/lib --enable-shared \
       --includedir=/usr/local/tfs-common-utils/include/tbnet  \
       --libdir=/usr/lib64

    make -j 4 && make install
fi


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值