vcpkg 安装失败 "SSL connect error"
vcpkg install fails with "SSL connect error"
当我尝试使用 vcpkg 安装 libxml2 包时,出现以下错误。
如何克服这个问题?有没有办法在 vcpkg 中使用 http 而不是 https?或者我可以跳过 sll 检查吗?
.\vcpkg install libxml2
The following packages will be built and installed:
- libiconv:x86-windows
- liblzma:x86-windows
- libxml2:x86-windows
- zlib:x86-windows
Additional packages (*) will be installed to complete this operation.
Starting package 1/4: zlib:x86-windows
Building package zlib:x86-windows...
-- CURRENT_INSTALLED_DIR=...
-- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz...
-- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz... Failed. Status: 56;"Failure when receiving data from the peer"
-- Downloading https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz...
-- Downloading https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz... Failed. Status: 35;"SSL connect error"
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:82 (message): Failed to download file. Add mirrors or submit an issue at https://github.com/Microsoft/vcpkg/issues
Call Stack (most recent call first): ports/zlib/portfile.cmake:3 (vcpkg_download_distfile) scripts/ports.cmake:72 (include)
Error: Building package zlib:x86-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with .\vcpkg update
, then submit an issue at https://github.com/Microsoft/vcpkg/issues including:
我可以通过编辑 vcpkg\ports\libxml2\
文件夹中的 profile.cmake
文件来解决这个问题。我添加了 ftp link URLS "ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz"
和 vcpkg 下载文件 ftp.
当我尝试使用 vcpkg 安装 libxml2 包时,出现以下错误。
如何克服这个问题?有没有办法在 vcpkg 中使用 http 而不是 https?或者我可以跳过 sll 检查吗?
.\vcpkg install libxml2
The following packages will be built and installed:
- libiconv:x86-windows
- liblzma:x86-windows
- libxml2:x86-windows
- zlib:x86-windows
Additional packages (*) will be installed to complete this operation.
Starting package 1/4: zlib:x86-windows
Building package zlib:x86-windows...
-- CURRENT_INSTALLED_DIR=...
-- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz...
-- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz... Failed. Status: 56;"Failure when receiving data from the peer"
-- Downloading https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz...
-- Downloading https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz... Failed. Status: 35;"SSL connect error"
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:82 (message): Failed to download file. Add mirrors or submit an issue at https://github.com/Microsoft/vcpkg/issues
Call Stack (most recent call first): ports/zlib/portfile.cmake:3 (vcpkg_download_distfile) scripts/ports.cmake:72 (include)
Error: Building package zlib:x86-windows failed with: BUILD_FAILED Please ensure you're using the latest portfiles with
.\vcpkg update
, then submit an issue at https://github.com/Microsoft/vcpkg/issues including:
我可以通过编辑 vcpkg\ports\libxml2\
文件夹中的 profile.cmake
文件来解决这个问题。我添加了 ftp link URLS "ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz"
和 vcpkg 下载文件 ftp.