您的位置:首页 > 运维架构 > Linux

centos 6 编译mongo-cxx-driver

2012-03-20 11:05 441 查看
使用系统自带 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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: