在尝试安装 boost 时,我在配置检查期间收到此错误。谷歌搜索没有给出任何指示。
[root@heracles boost_1_54_0]# ./b2 install
Performing configuration checks
- 32-bit : no (cached)
- 64-bit : yes (cached)
- arm : no (cached)
- mips1 : no (cached)
- power : no (cached)
- sparc : no (cached)
- x86 : yes (cached)
error: No best alternative for libs/coroutine/build/allocator_sources
next alternative: required properties: <link>static <target-os>windows <threading>multi
not matched
next alternative: required properties: <link>static <segmented-stacks>on <threading>multi
not matched
next alternative: required properties: <link>static <threading>multi
not matched
- has_icu builds : no (cached)
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
- zlib : yes (cached)
- iconv (libc) : yes (cached)
- icu : no (cached)
- icu (lib64) : no (cached)
- compiler-supports-ssse3 : yes (cached)
- compiler-supports-avx2 : no (cached)
- gcc visibility : yes (cached)
- long double support : yes (cached)
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
error: No best alternative for libs/coroutine/build/allocator_sources
next alternative: required properties: <link>static <target-os>windows <threading>multi
not matched
next alternative: required properties: <link>static <segmented-stacks>on <threading>multi
not matched
next alternative: required properties: <link>static <threading>multi
not matched
- zlib : yes (cached)
Run Code Online (Sandbox Code Playgroud)
如何找到分配器源的替代方案?
谢谢。
小智 6
这是boost中的一个bug。要修复它,请打开文件lib/coroutine/build/Jamfile.v2并替换此行:
explicit yield_sources ;
Run Code Online (Sandbox Code Playgroud)
有了这个:
explicit allocator_sources ;
Run Code Online (Sandbox Code Playgroud)
或等待错误修复发布。
| 归档时间: |
|
| 查看次数: |
2816 次 |
| 最近记录: |