标签: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
标签:tfs install
原文地址:http://pencild.blog.51cto.com/3947107/1441048