c++ - Boost二进制禁止(通过猎人下载)
问题描述
我正在尝试使用 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)
解决方案
为我解决问题的解决方法是从https://www.boost.org/手动下载 boost_1_66_0.7z并将其放在 $HOME/.hunter/_Base/Download/Boost/1.66.0/075d0b4/ 下
推荐阅读
- python - Pandas - 使用逻辑过滤 DataFrame
- php - 我需要比较 2 个模板,并需要从 html 中定义的变量中获取字符串与 PHP
- c# - 如何将原始数据列表转换为 Json 列表?
- java - 如何在 Mockito 中模拟注入的 bean?
- php - PHP - 为不存在的文章加载 404 页面而不更改 URL
- java - 0-1 和 4 之间的模式字符串匹配
- c# - 进度条的 Visibility 属性在运行时不变
- xslt - 是否可以使用 xslt2.0 或 xslt 3.0 将解析器错误消息存储在变量中
- ios - 如何在没有 UIDocumentPickerViewController 的情况下访问所有 iCloud 驱动器文件(应用程序容器外)?
- react-native - 如何使用 HERE-MAP 为 uber 等路线创建 react-native 应用程序?