使用柯南安装boost时出现身份验证错误

时间:2020-03-01 16:54:45

标签: c++ boost conan

我正在尝试使用以下conanfile.txt文件安装boost:

[requires]
cryptopp/8.2.0@bincrafters/stable
boost/1.64.0@conan/stable
gtest/1.8.1@bincrafters/stable
log4cplus/2.0.4@bincrafters/stable
OpenSSL/1.1.1@conan/stable
zlib/1.2.11@conan/stable
bzip2/1.0.8@conan/stable
lz4/1.8.0@bincrafters/stable 
snappy/1.1.7@bincrafters/stable 
zstd/1.4.0@bincrafters/stable

[generators]
cmake

[options]
OpenSSL:shared=True
boost:without_atomic=True
boost:without_wave=True
boost:without_container=True
boost:without_exception=True
boost:without_graph=True
boost:without_iostreams=True
boost:without_locale=True
boost:without_program_options=True
boost:without_random=True
boost:without_regex=True
boost:without_serialization=True
boost:without_coroutine=True
boost:without_fiber=True
boost:without_context=True
boost:without_timer=True
boost:without_thread=True
boost:without_chrono=True
boost:without_date_time=True
boost:without_log=True
boost:without_math=True
boost:without_type_erasure=True
boost:without_graph_parallel=True
boost:without_test=True
boost:without_mpi=True
boost:without_context=True

[imports]
bin, *.dll -> ./lib # Copies all dll files from packages bin folder to my "lib" folder
lib, *.dylib* -> ./lib # Copies all dylib files from packages lib folder to my "lib" folder
lib, *.so* -> ./lib # Copies all dylib files from packages lib folder to my "lib" folder

但是由于某些原因,我遇到了以下错误:

错误:boost/1.64.0@conan/stable:source()方法中的错误,第70行 tools.get(URL,sha256 = sha256) AuthenticationException:禁止!

对我来说奇怪的是,它一直有效到昨天... 非常感谢您的帮助。 谢谢!

2 个答案:

答案 0 :(得分:0)

目前似乎无法使用升压源。看到问题: https://github.com/conan-io/conan-center-index/issues/1007

答案 1 :(得分:0)

根本原因是源头

"https://dl.bintray.com/boostorg/release/%s/source/%s" % (self.version, zip_name)

无法访问。源 uri 在 ~/.conan/data/boost/x.xx.x/conan/stable/export/conanfile.py 中指定。

解决办法: 请将 uri 更改为 Python 代码中的另一个可访问的 uri。确保 sha 校验和匹配。