centos 6 编译mongo-cxx-driver

来源:互联网 发布:java io流文件放在哪里 编辑:程序博客网 时间:2024/06/05 04:38
使用系统自带 boost
请使用yum安装相应的库和devel包

直接执行scons
# scons 
scons: Reading SConscript files ...
Checking for C library boost_thread-mt... (cached) no
Checking for C library boost_thread... (cached) no
Checking for C library boost_filesystem-mt... (cached) yes
Checking for C library boost_system-mt... (cached) yes

#scons --config=force
scons: Reading SConscript files ...
Checking for C library boost_thread-mt... (cached) yes
Checking for C library boost_thread... (cached) yes
Checking for C library boost_filesystem-mt... (cached) yes
Checking for C library boost_system-mt... (cached) yes
强制更新配置就能找到,就能编译通过
如果需要编译其它位置的boost请设置LIBPATH 和CPPPATH
使用参数 --extrapath 分别在路径后追加lib lib64(LIBPATH) 或 include(CPPATH)

原创粉丝点击