使用系统自带 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: 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)