ocaml - opam 安装 Curl 失败
问题描述
新手问题:
我在 Windows 10 上安装了 opam 2.0.5 版(使用 cygwin)。
我试图 opam install utop
22 个软件包中除了 3 个以外的所有软件包都安装得很好,所以我认为这不是网络问题。对于未安装的 3 个,我该怎么办?为什么会这样?(我已经尝试过两天)。
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[camomile.1.0.2] found in cache
[charInfo_width.1.1.0] found in cache
[cppo.1.6.6] found in cache
[dune.2.1.2] found in cache
[dune-configurator.2.1.2] found in cache
[dune-private-libs.2.1.2] found in cache
[lambda-term.2.0.3] found in cache
[lwt.5.1.1] found in cache
[lwt_log.1.1.1] found in cache
[lwt_react.1.1.3] found in cache
[mmap.1.1.0] found in cache
[ocamlbuild.0.14.0] found in cache
[ocplib-endian.1.0] found in cache
[result.1.4] found in cache
[WARNING] ocamlfind.1.8.1: download of
http://download.camlcity.org/download/findlib-1.8.1.tar.gz failed
(http://download.camlcity.org/download/findlib-1.8.1.tar.gz (Curl
failed: "D:\\cygwin64\\bin\\curl.exe --write-out %{http_code}\\n
--retry 3 --retry-delay 2 --user-agent opam/2.0.5 -L -o
D:/cygwin64/home/ysg4206/.opam/ocaml-variants.4.07.1+mingw64c/.opam-sw
itch/sources/ocamlfind.1.8.1/findlib-1.8.1.tar.gz.part
http://download.camlcity.org/download/findlib-1.8.1.tar.gz" exited
with code 28)), trying mirror
[utop.2.4.3] found in cachep] [topkg.1.0.1: http]
Processing 21/22: [ocamlfind.1.8.1: http] [topkg.1.0.1: htt
[zed.2.0.4] found in cache
[ERROR] The sources of the following couldn't be obtained, aborting:
- ocamlfind.1.8.1: Curl failed
- react.1.2.1: Curl failed
- topkg.1.0.1: Curl failed
ysg4206@YSG4206 ~
$ opam --version
2.0.5
解决方案
推荐阅读
- android - 为什么当我们关闭应用程序时在android中只调用主要活动ondestroy
- javascript - 渲染项目时遵循模式
- java - Java - 当继承,多态,重载和覆盖都涉及时调用哪个函数?
- java - 搜索/插入查询 jdbc 中的反斜杠 (\) 和引号 (')
- java - Spring Flux 和 Async 注解
- javascript - 动态响应更新数组并将其传递给子组件
- python - 从部分分类列中获取 value_counts
- r - 数字的 na.locf (zoo) 的替代方案
- php - 从公司页面获取 LinkedIn-feeds - up-to-date-info
- r - 剂量反应模型系数