一、libunwind 安装 (64位系统需要)
1、libunwind-1.1.tar.gz
2、安装步骤
$ tar xzf 1、libunwind-$version-source.tar.gz
$ cd 1、libunwind-$version
$ ./configure && make && make install
二、gflags 安装
1、gflags-2.1.2.tar.gz cmake-3.7.2.tar.gz
2、安装步骤
#如未安装 cmake ,请先安装,反之略过。
$ tar xzf cmake-$version.tar.gz
$ cd cmake-$version
$ ./configure && make && make install
$ tar xzf gflags-$version-source.tar.gz
$ cd gflags-$version
$ mkdir build && cd build
$ ccmake ..
- Press 'c' to configure the build system and 'e' to ignore warnings.
- Set CMAKE_INSTALL_PREFIX and other CMake variables and options.
- Continue pressing 'c' until the option 'g' is available.
- Then press 'g' to generate the configuration files for GNU Make.
$ make
$ make test (optional)
$ make install (optional)
3、如果要安装glog 则ccmake 时需要配置加入-fPIC,否则glog 编译不过,会提示gflags.a -fPIC相关错误
CMAKE_CXX_FLAGS -fPIC
CMAKE_C_FLAGS -fPIC
三、glog 安装
1、glog-0.3.4.tar.gz
2、安装步骤
$ tar xzf glog-$version-source.tar.gz
$ cd glog-$version
$ ./configure && make && make install
四、protobuf 安装
1、protobuf-2.6.1.zip
2、安装步骤
$ unzip protobuf-$version-source.zip
$ cd protobuf-$version
$ ./configure && make && make install
五、gperftools 安装
1、gperftools-2.5.tar.gz
2、安装步骤
$ tar xzf gperftools-$version-source.tar.gz
$ cd gperftools-$version
$ ./configure && make && make install
六、scons 安装 (和cmake 类似功能,使用python语言)
1、scons-2.4.1-1.noarch.rpm
2、安装步骤(python已安装)
$ rpm -ivh scons-2.4.1-1.noarch.rpm
七、其他
/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v
