TFS编译安装

简介:

本文记录了tfs 2.2.16版本在centos linux 6.3 64位系统上的编译安装过程。Tfs编译安装官方推荐使用gcc 4.1.2, centos6.3系统自带的gcc版本为4.4.6,因而在make过程中会报错,主要原因是gcc 4.4.6版本的编译器对语法检查严格导致的。目前tfs版本最新源码为2.6.62.6版本的编译安装需要tair支持,支持重复文件的去重。目前淘宝推荐开源用户采用2.2.16版本。


一:安装基本的类库

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# yum -y install libuuid-devel zlib-devel mysql-devel
# cd /usr/local/src/
# svn checkout -r 18 http://code.taobao.org/svn/tb-common-utils/trunk/ tb-common-utils 
# export TBLIB_ROOT=/usr/local/lib/
# cd  tb-common-utils
# sh build.sh 
  
# wget
http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99.tar.gz
# tar -zxvpf libunwind-0.99.tar.gz
# cd libunwind-0.99
# ./configure && make && make install
  
# wget https://gperftools.googlecode.com/files/google-perftools-1.7.tar.gz
# tar -zxvpf google-perftools-1.7.tar.gz 
# cd google-perftools-1.7
# ./configure && make && make install

二:编译安装tfs

1
2
3
4
5
6
7
8
9
# cd /usr/local/src/
# svn co http://code.taobao.org/svn/tfs/tags/release-2.2.16
# cd release-2.2.16/
# ./build.sh init
# ./configure --prefix=/usr/local/tfs --with-release=yes
# make
# make install
# ls /usr/local/tfs/
bin  conf  include  lib  logs  scripts  sql

三:make常见报错处理

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
27
28
29
30
##############################################################################
make报错:
session_util.h:30: error: ISO C++ forbids declaration of ‘int32_t’ with no type
  
# vi ./src/common/session_util.h
第一行添加如下:
  #include < stdint.h >
  
##############################################################################
make报错:
/usr/bin/ld: cannot find -ljemalloc
collect2: ld returned 1 exit status
make[2]: *** [dataserver] Error 1
  
# wget 
ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/abustany:/epel-rebuilds/CentOS_CentOS-6/x86_64/jemalloc-3.4.0-1.1.x86_64.rpm
  
# wget 
ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/abustany:/epel-rebuilds/CentOS_CentOS-6/x86_64/jemalloc-devel-3.4.0-1.1.x86_64.rpm
  
# rpm -ivh jemalloc-*
  
##############################################################################
make报错:
meta_server_service.cpp:1584: error: invalid conversion from ‘const char*’ to ‘char*’
  
# vi ./src/name_meta_server/meta_server_service.cpp
1584行修改如下:
char* pos = (char *) strstr(sub_dir, parents_dir);
##############################################################################
本文转自斩月博客51CTO博客,原文链接http://blog.51cto.com/ylw6006/1557556如需转载请自行联系原作者                                                                            ylw6006
相关文章
|
安全 测试技术 Linux
multiOTP配置安装
https://code.google.com/p/google-authenticator/ 是google提供的OTP解决方案。   http://www.multiotp.net/ 是一个开源otp验证解决方案,继承了google的OTP方案, 可以通过pam模块与Radius验证服务器集成,安装包已经包括了Radius和Google OTP 模块。
2021 0
|
1月前
|
存储 负载均衡 容灾
Fastdfs安装与配置
Fastdfs安装与配置
|
2月前
|
关系型数据库 MySQL Linux
Azkaban【部署 02】CentOS release 7.5安装配置azkaban-3.70.0安装阶段(含已编译的10个安装文件:可直接进行安装)
【2月更文挑战第5天】CentOS release 7.5安装配置azkaban-3.70.0安装阶段(含已编译的10个安装文件:可直接进行安装)
48 7
|
存储 Linux PHP
CentOS7 部署安装FastDFS多机版(三)——安装FastDFS的PHP扩展
CentOS7 部署安装FastDFS多机版(三)——安装FastDFS的PHP扩展
125 0
CentOS7 部署安装FastDFS多机版(三)——安装FastDFS的PHP扩展
|
存储 负载均衡 应用服务中间件
CentOS7 部署安装FastDFS多机版(一)——安装FastDFS
CentOS7 部署安装FastDFS多机版(一)——安装FastDFS
173 0
CentOS7 部署安装FastDFS多机版(一)——安装FastDFS
|
存储 Java Linux
FastDFS 安装与配置| 学习笔记
快速学习 FastDFS 安装与配置。
124 0
FastDFS 安装与配置| 学习笔记
|
分布式计算 Java Hadoop
ambari 2.7.6源码编译指南
2021/11/16,ambari终于推出了2.7.6版本,该版本相对2.7.5版本以来,共有26个contributors提交了114个commits以及修改了557个文件。本文以ambari最新版本源码,分享如何进行ambari源码编译以及编译过程中遇到的坑。
ambari 2.7.6源码编译指南
|
NoSQL PHP Apache
php扩展mongodb模块安装
文章来源本人博客 http://blog.teier.cn
2084 0
|
Windows C++ 敏捷开发