TFS install

-------------------------------------------------install -------------------------------------------------------------------------
#!/bin/bash
mkdir /opt/distfiles/tfs -p
cd /opt/distfiles/tfs

yum -y install glibc-devel.i686  glibc-devel gcc  gcc-c++  make  autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers gd gd-devel authconfig automake autoconfig libtool libuuid-devel zlib-devel mysql-devel

################################gcc#####################################################
wget http://11.11.11.11/distfiles/gcc-4.1.2.tar.gz

yum -y install texinfo readline-devel

tar zxvf gcc-4.1.2.tar.gz

cd gcc-4.1.2

./configure --prefix=/usr/local/gcc-4.1.2 --enable-threads=posix --disable-checking --enable--long-long  --with-system-zlib --enable-languages=c,c++,java
make
make install

mv /usr/bin/gcc /usr/bin/gcc_old
mv /usr/bin/g++ /usr/bin/g++_old
mv /usr/local/gcc-4.1.2/bin/gcc /usr/bin/gcc
mv /usr/local/gcc-4.1.2/bin/g++ /usr/bin/g++

cat >>~/.bash_profile<<eof
LD_LIBRARY_PATH=/usr/local/gcc-4.1.2/lib:/usr/local/gcc-4.1.2/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
export TBLIB_ROOT="/opt/tfs"
eof

source ~/.bash_profile

cd ../

#######################gtest#########################
wget http://11.11.11.11/distfiles/gtest-1.6.0.zip

unzip gtest-1.6.0.zip
cd gtest-1.6.0
./configure
make
cd make/
make
./sample1_unittest
cd ../
cp -r include/* /usr/include/
cp -r lib/.libs/* /usr/lib/

cd ../
##############tb-connom-utils####################

wget http://11.11.11.11/distfiles/tb-connom-utils.zip
unzip tb-connom-utils.zip
cd tb-connom-utils
bash build.sh
cd ../

###################jemalloc#################################################

wget http://www.canonware.com/download/jemalloc/jemalloc-3.4.0.tar.bz2
tar jxvf jemalloc-3.4.0.tar.bz2
cd jemalloc-3.4.0
./configure
make && make install

ln -s /usr/local/lib/libjemalloc.so.1 /usr/lib64/
cd ../

##################tfs####################

wget http://11.11.11.11/distfiles/tb-2.2.14.zip
unzip tb-2.2.14.zip
cd tb-2.2.14
sh build.sh init
./configure --prefix=/usr/local/tfs-2.2.14 --with-release  --without-tcmalloc
make
make install
cd /

-----------------------------------------end install ---------------------------------------------------------------------------

Q:
make[1]: Warning: File `libbb/Makefile.in‘ has modification time 3.2e+04 s in the future 错误
filedate文档
系统时间不正确,文档被修改的时间比系统时间大,把系统时间修改正确即可。
修改时间的命令:
date -s 07/13/2007
date -s 11:55:00

Q:configure: error: no acceptable cc found in $PATH
A:yum -y install gcc  gcc-c++

Q:/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
A:yum install texinfo glibc-devel.i686

Q:WARNING: `makeinfo‘ is missing on your system.  You should only need it if
         you modified a `.texi‘ or `.texinfo‘ file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make‘ (AIX,
         DU, IRIX).  You might want to install the `Texinfo‘ package or
         the `GNU make‘ package.  Grab either from any GNU archive site.
make[4]: *** [fastjar.info] 错误1
make[4]: Leaving directory `/usr/src/gcc-4.1.1-build/fastjar‘
make[3]: *** [all] 错误 2
make[3]: Leaving directory `/usr/src/gcc-4.1.1-build/fastjar‘
make[2]: *** [all-fastjar] 错误 2
make[2]: Leaving directory `/usr/src/gcc-4.1.1-build‘
make[1]: *** [all] 错误2
make[1]: Leaving directory `/usr/src/gcc-4.1.1-build‘
make: *** [bootstrap] 错误2

A:
 出现此错误的原因是在configure文件中texinfo对该版本不支持可以在configure里找到
以下语句
if ${MAKEINFO} --version "
       | egrep ‘texinfo[^0-9]*([1-3][0-9]|4".[4-9]|[5-9])‘ >/dev/null 2>&1; then
然后将它改为
‘texinfo[^0-9]*([1-3] [0-9]|4\.[4-9]|4\.[1-9][0-9]*|[5-9])‘
      | egrep ‘texinfo[^0-9]*([1-3][0-9]|4\.[0-9]|4\.[1-9][0-9]*[5-9])‘ >/dev/null 2>&1; then

NFS
Q:客户端挂载分区 出现目录的uid和gid  错误的情况
A:service rpcidmapd restart

时间: 2024-10-01 10:52:17

TFS install的相关文章

centos6.5上安装淘宝tfs系统

为了安装淘宝tfs文件系统,查了很多资料.若仅参考淘宝的官方文档,那么安装注定失败,因为在官方文档中很多依赖库并没有明确标出. 为了更方便的安装,我这里只写正确的安装过程,错误的解决就不详细描述了. 第一步:gcc降级 centos6.5上如果用yum安装gcc的话,默认是4.4.7版本.若以在gcc4.4.7的基础上安装tfs的话会出现许多莫名其妙的错,最后在网上 甚至搜索不到相关的错误信息.不过我们公司已经有大神安装成功,到时候看他能不能分享一下经验. yum install -y texi

TFS - nginx-tfs模块

1.安装yajl yajl是一个开源的JSON库 请到这里下载: http://lloyd.github.io/yajl/(官网) 下载地址:http://download.csdn.net/detail/wei_xiaox126/8304485 解压文件 unzip yajl-master.zip ./configure make && make install 提示没有安装cmake, apt-get install cmake 提示有一些test的错误,可以直接忽略 2.安装ngin

TFS Express backup and restore

 When we setup source control server, we should always make a backup and restore plan for it. This article is to describe how to backup and restore a TFS Express instance from one server to another server. This blog is an English version, for Chine

【转】在Eclipse中安装和使用TFS插件

文章地址:http://www.cnblogs.com/judastree/archive/2012/09/05/2672640.html 问题: 在Eclipse中安装和使用TFS插件. 解决过程: 在Eclipse中安装插件的方法其实都一样,安装TFS的步骤如下: 下载TFS插件.你可以到微软的下载中心,下载TFS插件TFSEclipsePlugin-UpdateSiteArchive-10.0.0.zip. 下载完毕之后,打开Eclipse. 点击Help菜单中的Install New S

Mint17下安装TFS(taobao file sysytem)(带gcc4.8.2版本)

最近研究了一下淘宝的分布式文件系统TFS(Taobao file system). TFS(taobao file system)是一个高可扩展.高可用.高性能.面向互联网服务的分布式文件系统,其设计目标是支持海量的非结构化数据的存储:TFS使用C++语言开发,需要运行在64bit Linux OS上,本文介绍如何在Linux环境编译安装TFS. 在安装的过程中,遇到了许多奇葩的问题,在此吐槽一下淘宝的团队真是懒.TFS介绍里面提到他们团队是用的gcc4.1.2进行编译的,高版本可能会报错,不过

How to unshelve a shelveset into another branch with TFS

/*Author : Jiangong SUN*/ If you have made a shelve in one branch, and want to unshelve it to another branch. This article will be helpful for you. There are some steps to follow: 1. You need to install TFS Power tools in your machine. Or else, you c

Centos搭建 TFS Nameserver HA

背景 tfs要求用gcc 4.1.2编译,两种方案1 是用centos5(自带gcc 4.1.2),  2 使用centos6 把gcc降到4.1.2.我使用的是第一个方法成功运行tfs,当做HA的时候问题来了,官方要求是用heartbeat 3.x,centos5是2.x.开始选择在centos5下编译heartbeat 3成功,但还需要编译pacemaker,编译的时候遇到些问题,可能是版本匹配,依赖不全等,就算编译通过考虑后续还需要编译XXX岂不浪费时间,毕竟centos5已经很老了. 于

Team Foundation Server 2013 with Update 3 Install LOG

[Info   @10:14:58.155] ====================================================================[Info   @10:14:58.163] Team Foundation Server Administration Log[Info   @10:14:58.175] Version  : 12.0.30723.0[Info   @10:14:58.175] DateTime : 10/03/2014 18:1

TFS NameServer的高可用性(HA)

在集群中,部署主辅NameServer,即Master和Slave.当主NameServer(Master)出现故障时,例如,NameServer Master所在的物理服务器宕机,利用vip切换至辅NameServer(Slave)以继续对外提供服务.除了NameServer所在的服务器硬件宕机,当NameServer服务异常时,VIP也需要自动切换至Slave. 自动切换机制采用HeartBeat + Pacemaker的方式. 以下部署步骤的操作系统环境为: CentOS release