centos 6.5安装c++ folly库

centos 6.5安装c++ folly库一 引言 Folly 是一个在 Facebook 内部广泛和可重复使用的 C 库组件大集合 wangle C 网络库 proxygen C http 框架在安装所有的库之前请检查你系统里面的基础编译工具 cmake autoconfcmak version 版本号 2 8 12autoconf version 版本号 2 69autoconf 我使用 2 63 时总出现 configure

一、引言

autoconf我使用2.63时总出现configure.ac:7: error: possibly undefined macro: m4_esyscmd_s的错误。

从git下载库的时候建议还是下载release版本的,开发版本虽然是最新的但不稳定,我安装过程中就遇到这样的问题。

二、folly安装

cmake . -DBUILD_TESTING=ON make sudo make install test/cctest/cctest --list | tr -d '<' | xargs test/cctest/cctest
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  - 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. make sudo make install 

上面编译安装过程,一定要注意把BUILD_SHARED_LIBS设置为ON,因为后面folly安装使用的是动态链接库,如果不打开默认生成的是静态库,在后面folly configure的过程中会出现undefined refecence的异常

./configure & make & make install
autoreconf -ivf ./configure make & sudo make install

注意:如有其他的安装问题可以根据提示信息修复

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/232733.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号