因为我需要测试Boost的一些实验功能,我想从Modular Boost仓库安装Boost.
我按照https://svn.boost.org/trac/boost/wiki/TryModBoost的指示,b2命令失败:
./b2 headers /home/wichtounet/src/modular-boost/tools/build/src/build/feature.jam:493: in feature.validate-value-string from module feature error: "none" is not a known value of feature <optimization> error: legal values: "off" "speed" "space" /home/wichtounet/src/modular-boost/tools/build/src/build/property.jam:273: in validate1 from module property /home/wichtounet/src/modular-boost/tools/build/src/build/property.jam:299: in property.validate from module property /home/wichtounet/src/modular-boost/tools/build/src/tools/builtin.jam:377: in variant from module builtin /usr/share/boost-build/site-config.jam:9: in modules.load from module site-config /home/wichtounet/src/modular-boost/tools/build/src/build-system.jam:249: in load-config from module build-system /home/wichtounet/src/modular-boost/tools/build/src/build-system.jam:351: in load-configuration-files from module build-system /home/wichtounet/src/modular-boost/tools/build/src/build-system.jam:524: in load from module build-system /home/wichtounet/src/modular-boost/tools/build/src/kernel/modules.jam:289: in import from module modules /home/wichtounet/src/modular-boost/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module /home/wichtounet/src/modular-boost/boost-build.jam:17: in module scope from module
我尝试在命令行中添加optimize = speed,但没有改变任何东西.我尝试了大师和开发分支.我尝试用clang和gcc工具集.
有人有一个想法如何安装Modular Boost?
有没有必要的配置(和哪里)?还是有另一个程序要遵循?
编辑:它似乎来自可能由Gentoo安装的/usr/share/boost-build/site-config.jam文件.我需要能够告诉b2忽略这个文件.