我已经用this link安装了git bash,并用this link安装了Ocaml(单击Installer for 64-bit OCaml 4.02.3 + OPAM
按钮)。
然后我在git bash中输入opam install ocp-indent
并查看结果
The following actions will be performed:
- install ocamlfind 1.8.0 [required by cmdliner, base-bytes, ocp-build]
- install jbuilder 1.0+beta20 [required by result]
- install base-bytes base [required by ocp-indent]
- install result 1.3 [required by cmdliner]
- install topkg 0.9.1 [required by cmdliner]
- install cmdliner 1.0.2 [required by ocp-indent]
- install ocp-build 1.99.20-beta [required by ocp-indent]
- install ocp-indent 1.6.1
===== 8 to install =====
Do you want to continue ? [Y/n] Y
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[jbuilder: http] Command started
[ocp-build: http] Command started
[ocp-indent: http] Command started
[result: http] Command started
[ERROR] The sources of the following couldn't be obtained, aborting:
- jbuilder.1.0+beta20
- ocp-build.1.99.20-beta
- ocp-indent.1.6.1
- result.1.3
(This might be due to outdated metadata, in this case run 'opam
update')
我想问你是否有我可以使用opam repository
添加的链接或一种变通方法(无cygwin)来在Windows 7中安装ocp-indent。
感谢您的阅读和回答。