vcpkg安装失败并显示“SSL connect error”

时间:2023-01-05 00:20:25

When I try to install libxml2 packages with vcpkg, it gives me below error.

当我尝试使用vcpkg安装libxml2软件包时,它给出了以下错误。

How can overcome this issue? Is there a way to use http instead of https in vcpkg? Or can I skipp sll check?

怎么能克服这个问题?有没有办法在vcpkg中使用http而不是https?或者我可以skipp sll检查?

.\vcpkg install libxml2

。\ vcpkg安装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

启动包1/4:zlib:x86-windows

Building package zlib:x86-windows...

构建包zlib:x86-windows ...

-- CURRENT_INSTALLED_DIR=...

-- Downloading http://www.zlib.net/zlib-1.2.11.tar.gz...

- 下载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"

- 下载http://www.zlib.net/zlib-1.2.11.tar.gz ...失败。状态:56;“从对等方接收数据时失败”

-- Downloading https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz...

- 正在下载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"

- 正在下载https://downloads.sourceforge.net/project/libpng/zlib/1.2.11/zlib-1.2.11.tar.gz ...失败。状态:35;“SSL连接错误”

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

脚本中的CMake错误/ cmake / vcpkg_download_distfile.cmake:82(消息):无法下载文件。通过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)

调用堆栈(最近调用最先):ports / zlib / portfile.cmake:3(vcpkg_download_distfile)scripts / ports.cmake:72(包含)

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:

错误:构建软件包zlib:x86-windows失败:BUILD_FAILED请确保您使用带有。\ vcpkg更新的最新portfiles,然后通过https://github.com/Microsoft/vcpkg/issues提交问题,包括:

1 个解决方案

#1


0  

I could resolve this problem by editing profile.cmake file in vcpkg\ports\libxml2\ folder. I added ftp link URLS "ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz" and vcpkg downloaded files over ftp.

我可以通过编辑vcpkg \ ports \ libxml2 \文件夹中的profile.cmake文件来解决此问题。我在ftp上添加了ftp链接URL“ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz”和vcpkg下载文件。

#1


0  

I could resolve this problem by editing profile.cmake file in vcpkg\ports\libxml2\ folder. I added ftp link URLS "ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz" and vcpkg downloaded files over ftp.

我可以通过编辑vcpkg \ ports \ libxml2 \文件夹中的profile.cmake文件来解决此问题。我在ftp上添加了ftp链接URL“ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz”和vcpkg下载文件。