【发布时间】:2021-12-11 14:32:39
【问题描述】:
我正在尝试使用 conan 安装 gtest,但是当我这样做时出现以下错误:
gtest/1.11.0: Not found in local cache, looking in remotes...
gtest/1.11.0: Trying with 'conancenter'...
ERROR: HTTPSConnectionPool(host='center.conan.io', port=443): Max retries exceeded with url: /v1/ping (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))
Unable to connect to conancenter=https://center.conan.io
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.
但是我不确定为什么它不起作用
包确实存在 (https://conan.io/center/gtest)
而且我也在使用柯南安装其他软件包,我对它们没有任何问题
我的完整 conanfile 看起来像这样:
[requires]
libcurl/7.78.0
cjson/1.7.15
gtest/1.11.0
[options]
openssl:shared=True
[generators]
cmake
有人知道我为什么会出现这个错误吗?
我在 Windows 11 上使用柯南 1.37.0
【问题讨论】:
标签: c++ cmake googletest conan