我正在尝试安装Boost的属性树库(“ boost_property_tree/1.70.0@bincrafters/stable”),但无法执行此操作,我总是收到一条错误消息,指出它不可用:
C:\Users\RHPACHECO\Desktop\kv\CMakeBasedCore\kvcore\build (master -> origin)
(conanrunenv) λ conan install boost_property_tree/1.69.0@bincrafters/stable
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.version=15
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
boost_property_tree/1.69.0@bincrafters/stable: Not found in local cache, looking in remotes...
boost_property_tree/1.69.0@bincrafters/stable: Trying with 'conan-center'...
boost_property_tree/1.69.0@bincrafters/stable: Trying with 'conantest'...
ERROR: HTTPSConnectionPool(host='10.157.5.1', port=9300): Max retries exceeded with url: /v1/ping (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x04AEE3D0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
Unable to connect to conantest=https://10.157.5.1:9300
我需要配置一个特定的遥控器吗?
答案 0 :(得分:1)
您的错误是由连接错误引起的:
错误:HTTPSConnectionPool(host = '10 .157.5.1',端口= 9300):url超过了最大重试次数:/ v1 / ping(由NewConnectionError(':导致:无法建立新连接:[WinError 10061]无连接可能是因为目标计算机主动拒绝了它'))
显示的IP地址是本地的,这意味着柯南正在本地服务器(conan_server或Artifactory)中寻找boost_property_tree
。
您可以强制特定的远程传递--remote
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
conan install boost_property_tree/1.69.0@bincrafters/stable --remote bincrafters
柯南将跳过其他遥控器,并尝试在bincrafters的遥控器中找到boost_property_tree
。这将部分解决您的问题,您需要修复本地服务器。您可以将其从远程列表中删除:
conan remote remove conantest
要获得有关柯南安装的更多信息:
https://docs.conan.io/en/latest/reference/commands/consumer/install.html#conan-install