加速安装失败:系统找不到指定的路径

Boost installation failed: The system cannot find the path specified

本文关键字:路径 找不到 系统 安装 失败 加速      更新时间:2023-10-16

我无法安装最新版本的Boost,即 1.61 .我所做的是在提示命令中从 boost 根文件夹运行" bootstrap.bat "Windows 7,但错误消息说:

构建提升引擎 系统找不到指定的路径。

无法构建 Boost.Build 引擎。请查阅引导程序.log 进一步诊断。

任何帮助表示赞赏!

如果你从 git 获得了提升,请确保你已经签出了任何相关的子模块。 就我而言,缺少的是工具/构建,我通过以下方式获得:

git submodule update --init -- "tools/build"

如果你不确定你需要什么,你也可以加载所有内容

git submodule update --init --recursive

我相信这不一定是Boost C++ Libraries或Boost.Build的问题,而是VS安装的问题。错误来自 vcvars64.bat:

@call "%VS120COMNTOOLS%VCVarsQueryRegistry.bat" No32bit 64bit  
@if "%VCINSTALLDIR%"=="" goto error_no_VCINSTALLDIR
...
:error_no_VSINSTALLDIR
@echo ERROR: Cannot determine the location of the VS installation.

VCVarsQueryRegistry.bat脚本执行类似操作的地方

@for /F "tokens=1,2*" %%i in ('reg query   "%1SOFTWAREMicrosoftVisualStudioSxSVS7" /v "12.0"') DO (
    @if "%%i"=="12.0" (
        @SET "VSINSTALLDIR=%%k"
    )
)

您的注册表在HKLMSOFTWAREMicrosoftVisualStudioSxSVS7HKCUSOFTWAREMicrosoftVisualStudioSxSVS7下有什么?无论如何,在这一点上听起来像是不完整的 VS 安装。