一、引言
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