【问题标题】:Boost binary forbidden (downloaded via hunter)Boost二进制禁止(通过猎人下载)
【发布时间】:2021-07-25 12:18:49
【问题描述】:

我正在尝试使用 cmake 编译并注意到 boost 二进制链接不可用(禁止)。有解决办法吗?

[ 25%] Performing download step (download, verify and extract) for 'Boost'
-- verifying file...
       file='/home/op/.hunter/_Base/Download/Boost/1.66.0/075d0b4/boost_1_66_0.7z'
-- SHA1 hash of
    /home/op/.hunter/_Base/Download/Boost/1.66.0/075d0b4/boost_1_66_0.7z
  does not match expected value
    expected: '075d0b43980614054b1f1bafd189f863bba6600e'
      actual: 'da39a3ee5e6b4b0d3255bfef95601890afd80709'
-- File already exists but hash mismatch. Removing...
-- Downloading...
   dst='/home/op/.hunter/_Base/Download/Boost/1.66.0/075d0b4/boost_1_66_0.7z'
   timeout='none'
-- Using src='https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.7z'
-- Retrying...
-- Using src='https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.7z'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.7z'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.7z'
-- Retry after 15 seconds (attempt #4) ...

相关配置:

hunter_config(CURL VERSION ${HUNTER_CURL_VERSION} CMAKE_ARGS HTTP_ONLY=ON CMAKE_USE_OPENSSL=OFF CMAKE_USE_LIBSSH2=OFF CURL_CA_PATH=none)
hunter_config(Boost VERSION 1.66.0)

【问题讨论】:

    标签: c++ boost cmake bintray


    【解决方案1】:

    为我解决此问题的解决方法是从 https://www.boost.org/ 手动下载 boost_1_66_0.7z 并将其放在 $HOME/.hunter/_Base/Download/Boost/1.66.0/075d0b4/ 下

    【讨论】:

    • 这是目前唯一的工作方式,bintray.com 上的服务器托管正在返回 Forbidden!而不是文件,所以我们必须从其他来源手动下载并将文件放入文件夹中
    【解决方案2】:

    Bintray 于 2021 年 5 月 1 日停止服务¹:

    https://lists.boost.org/Archives/boost/2021/02/250813.php

    感谢您通过使用 Bintray 来支持 JFrog。我们现在并将继续是一家以社区为中心的公司,本着透明的精神,我们提前通知您,自 2021 年 5 月起,我们将停用 Bintray。

    现在可以在此处下载 Boost:

    https://lists.boost.org/Archives/boost//2021/04/251468.php

    Bintray 在 5 月 1 日是“日落”。到时候你会 无法从那里下载提升版本。在那之前, 他们的服务偶尔会中断。该网站已 已更新,所有下载链接现在参考 https://boostorg.jfrog.io/artifactory/main/release/ 示例:取而代之 下载自: https://dl.bintray.com/boostorg/release/1.76.0/source/boost_1_76_0.tar.gz

    您应该从以下位置下载: https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz

    这适用于 1.63.0 以后的所有版本(1.63 之前的版本) 仍然托管在 SourceForge)

    【讨论】:

      猜你喜欢
      • 2011-01-16
      • 1970-01-01
      • 2021-07-10
      • 2016-04-03
      • 1970-01-01
      • 1970-01-01
      • 2012-11-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多