The company has been in the selection of Distributed file storage System, selected to choose, the final choice of Ali's TFS, well, after a while to study, found in REDHAT6 all kinds of compilation error problems, I believe we have encountered, The reason is that Ali's source code is even GCC4.1.2 compiled, and the use of 6 system of GCC is certainly more than 4.1.2, so all kinds of problems come. Because the production environment is all based on the 6 version, so must or to close this, the following is affixed to my operating procedures, convenient for you friends ha.
First, the basic package installation
Yum Install Automake.noarch
Yum Install libtool.x86_64
Yum Install readline-devel.x86_64
Yum Install zlib-devel.x86_64
Yum Install e2fsprogs-devel.x86_64
Yum Install Libuuid-devel
Yum Install gcc-c++
Yum Install Ncurses-devel ncurses
Second, the source code download
SVN Co http://code.taobao.org/svn/tfs/tags/release-2.0.4 TFS
SVN co-r http://code.taobao.org/svn/tb-common-utils/trunk tb-common-utils
Third, compile and install Tblib (tb-common-utils), which contains Tbsys and Tbnet,tfs rely on these two libraries, where I installed in and TFS the same path, easy to manage ha, we can appoint their own ha.
Export Tblib_root=/usr/local/tfs
CD Tb-common-utils
SH build.sh
Cd.. /tfs
SH build.sh Init
./configure--prefix=/usr/local/tfs--with-tblib-root=/usr/local/tfs--with-mysql=/usr/bin/mysql_config
Make
Find./-name Makefile |xargs sed-i ' s/-werror//g '
Make install
Well, it's finally done ...
CENTOS6.5 TFS Deployment