1

我想安装 Boost.Build,但是如果我想像教程中那样运行这个命令:

D:\boost_1_74_0> ./b2 install --prefix=C:\BoostBuild

然后我收到此错误消息:

D:/boost_1_74_0/tools/build/src/tools\gcc.jam:164: in gcc.init from module gcc
error: toolset gcc initialization:
error: provided command '-w64-mingw32-g++.exe' not found
error: initialized from C:\Users\maxfe\user-config.jam:1
D:/boost_1_74_0/tools/build/src/build\toolset.jam:44: in toolset.using from module toolset
D:/boost_1_74_0/tools/build/src/build\project.jam:1104: in using from module project-rules
C:\Users\username\user-config.jam:1: in modules.load from module user-config
D:/boost_1_74_0/tools/build/src\build-system.jam:255: in load-config from module build-system
D:/boost_1_74_0/tools/build/src\build-system.jam:453: in load-configuration-files from module build-system
D:/boost_1_74_0/tools/build/src\build-system.jam:607: in load from module build-system
D:/boost_1_74_0/tools/build/src/kernel\modules.jam:295: in import from module modules
D:/boost_1_74_0/tools/build/src/kernel/bootstrap.jam:139: in boost-build from module
D:/boost_1_74_0/boost-build.jam:17: in module scope from module

我已经安装了 MinGw-w64。

谁能帮我这个?

我遵循了本教程:https ://www.boost.org/doc/libs/1_74_0/more/getting_started/windows.html

4

1 回答 1

1

我忘记编辑 %HOMEDRIVE% 或 %HOMEPATH% 中的“user_config.jam”。

于 2020-12-09T18:14:19.483 回答