centos 6.5 编译 安装 folly指南
来源:互联网 发布:什么软件买东西便宜 编辑:程序博客网 时间:2024/05/27 12:22
一、环境:
系统版本:centos 6.5 64位
gcc版本:4.4.7-4
二、准备工作
1、boost 库 (1.5.1以上版本)下载地址:https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.gz2、folly库git地址:https://github.com/facebook/folly.git3、gcc新版(支持C++11)下载地址:http://ftp.gnu.org/gnu/gcc/gcc-4.9.4/gcc-4.9.4.tar.gz4、gflags下载地址:https://github.com/gflags/gflags/archive/v2.2.0.tar.gz5、gtest下载地址:https://github.com/google/googletest/archive/release-1.8.0.tar.gz6、double-conversiongit地址:https://github.com/google/double-conversion.git7 、安装依赖包yum install libevent libevent-devel libtool gitglibc-develglibc-headers gcc-c++ cmake zlib-develibbz2-devel python-developenssl openssl-devel8、glog下载地址:https://github.com/google/glog/archive/v0.3.5.tar.gz9、autoconf下载地址:ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
三、开始编译
1、先升级gcc版本让其支持C++11标准(1)执行脚本执行脚本 ./contrib/download_prerequisites(2).建立一个目录供编译出的文件存放mkdir buildcd build(3). 生成Makefile文件../configure -enable-checking=release -enable-languages=c,c++ -disable-multilib(4).编译make -j4(5).安装make install(6)验证gcc --versiong++ --version(7)覆盖原有的libstdc++.so.6rm -rf /usr/lib64/libstdc++.so.6ln -s /usr/local/lib64/libstdc++.so.6.0.20 / usr/lib64/libstdc++.so.62.编译boost库(1)、执行脚本sh bootstrap.sh(2).进行编译./b2(3)、安装./b2 install3、编译gflags
(1)cmake mkdir build && cd build
ccmake ..- Press 'c' to configure the build system and 'e' to ignore warnings.-Set CMAKE_INSTALL_PREFIX - Set BUILD_SHARED_LIBS ON- Continue pressing 'c' until the option 'g' is available.- Then press 'g' to generate the configuration files for GNU Make.
(2)make && make install(3)设置LD_LIBRARY_PATH不然会找不到动态库4、编译doubel-conversion(1)cmake . -DBUILD_TESTING=ON(2)make && make install5、编译glog(1)./configure(2)make && make install6、升级autoconf(1)./configure --prefix=/usr(2)make && make install7、编译folly(1)把googletest 放入folly/folly/test/并重命名为gtest(2)autoreconf -ivf(3)./configure(4)make(5)make check(6)make install
报错:Boost::Context Could not find a version of the library!
与yum 安装的boost 冲突,yum remove boost 然后重新编译安装boost
阅读全文
0 0
- centos 6.5 编译 安装 folly指南
- Facebook WDT (Folly) 安装指南 -- CentOS 7
- centos 6.5安装c++ folly库
- facebook folly 编译安装
- centos65 folly的编译安装
- Freeswitch on centos编译安装指南
- ubuntu 编译folly库
- linux编译folly
- Centos 编译安装Nutch2.x 入坑指南(1)
- CentOS 6.5编译安装FFMPEG
- CentOS 6.5 安装配置Docker指南
- CentOS 6.5 x86_64操作系统图文安装指南
- CentOS memcached安装指南
- Centos 6.7 安装指南
- CM安装指南(Centos)
- CentOS 7.3 安装指南
- CentOS 7.3 安装指南
- 编译facebook/folly报错libgflags invalid
- 过滤器(Filter)和拦截器(Interceptor)的区别
- Docker 容器管理
- 【Objective-C Runtime动态加载】---动态创建类Class 动态创建类Class,动态添加Class成员变量与成员函数,动态变量赋值与取值,动态函数调用等方法 a.使用objc_
- 安卓活动的生命周期
- app自动化测试4---desired capabilities
- centos 6.5 编译 安装 folly指南
- 谈谈对Java中Unicode、编码的理解
- 【leetcode】valid-palindrome
- Java学习笔记-《Java程序员面试宝典》-第四章基础知识-4.5字符串与数组(4.5.1-4.5.3)
- BroadcastReceiver 详解
- Android7.0中文文档(API)-- PopupMenu
- 组件的使用
- 安卓活动的启动模式
- selenium web 自动化环境搭建(Windows7 环境, Chrome, Python)