The installation error message is as follows
Prompt that the C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Default.props file cannot be found
C:\Users\l>gem install protocol-quic
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing protocol-quic:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/protocol-quic-0.0.0/ext/ngtcp2
cmake . -DCMAKE_INSTALL_PREFIX\=C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/protocol-quic-0.0.0
-- Building for: Visual Studio 14 2015
CMake Deprecation Warning at CMakeLists.txt:25 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Selecting Windows SDK version to target Windows 10.0.14393.
CMake Error at CMakeLists.txt:31 (project):
Failed to run MSBuild command:
C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe
to get the value of VCTargetsPath:
Microsoft (R) 生成引擎版本 14.0.25420.1
版权所有(C) Microsoft Corporation。保留所有权利。
生成启动时间为 2023/6/18 16:15:44。
节点 1 上的项目“C:\Ruby31-x64\lib\ruby\gems\3.1.0\gems\protocol-quic-0.0.0\ext\ngtcp2\CMakeFiles\3.27.0-rc2\VCTargetsPath.vcxproj”(默认目标)。
C:\Ruby31-x64\lib\ruby\gems\3.1.0\gems\protocol-quic-0.0.0\ext\ngtcp2\CMakeFiles\3.27.0-rc2\VCTargetsPath.vcxproj(14,2): error MSB4019: 未找到导入的项目“C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Default.props”。请确认 <Import> 声明中的路径正确,且磁盘上存在该文件。
已完成生成项目“C:\Ruby31-x64\lib\ruby\gems\3.1.0\gems\protocol-quic-0.0.0\ext\ngtcp2\CMakeFiles\3.27.0-rc2\VCTargetsPath.vcxproj”(默认目标)的操作 - 失败。
生成失败。
“C:\Ruby31-x64\lib\ruby\gems\3.1.0\gems\protocol-quic-0.0.0\ext\ngtcp2\CMakeFiles\3.27.0-rc2\VCTargetsPath.vcxproj”(默认目标) (1) ->
C:\Ruby31-x64\lib\ruby\gems\3.1.0\gems\protocol-quic-0.0.0\ext\ngtcp2\CMakeFiles\3.27.0-rc2\VCTargetsPath.vcxproj(14,2): error MSB4019: 未找到导入的项目“C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Default.props”。请确认 <Import> 声明中的路径正确,且磁盘上存在该文件。
0 个警告
1 个错误
已用时间 00:00:00.01
Exit code: 1
-- Configuring incomplete, errors occurred!
cmake failed, exit code 1
Gem files will remain installed in C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/protocol-quic-0.0.0 for inspection.
Results logged to C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/protocol-quic-0.0.0/gem_make.out
The installation error message is as follows
Prompt that the
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Default.propsfile cannot be found