由于缺少补丁文件,通过opam安装Camomile失败。我怎样才能解决这个问题?

时间:2014-07-21 12:55:37

标签: ocaml opam camomile

在我的ArchLinux笔记本电脑上通过utop安装opam时,我收到以下消息:

$ opam install utop
The following actions will be performed:
 - install camomile.0.8.5 [required by utop]
 - install zed.1.3 [required by utop]
 - install lambda-term.1.6 [required by utop]
 - install utop.1.14
4 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
Do you want to continue ? [Y/n] 

=-=-= Installing camomile.0.8.5 =-=-=
Applying cmxs.patch.

[ERROR] Due to some errors while processing camomile.0.8.5, the following actions will NOT proceed:
 - install utop.1.14
 - install lambda-term.1.6
 - install zed.1.3

===== ERROR while installing camomile.0.8.5 =====
Could not get the source for camomile.0.8.5:
# opam-version    1.1.1
# os              linux
Patch file "/home/sinan/.opam/system/build/camomile.0.8.5/cmxs.patch" not found.
'opam install utop' failed.

尝试自行安装camomile也会出现同样的错误。这似乎与commit 672e44e有关,cmxs.patch作为{{3}}传递到opam存储库。我不确定哪些内容会中断,以便opam尝试在没有补丁文件的情况下构建。

我尝试下载并将cmxs.patch放在报告的位置,但是,当然,当我尝试通过opam安装时,该目录会被破坏。

我该怎么办?

1 个答案:

答案 0 :(得分:0)

我本来希望能够修复底层问题,但是,最后,下载contents of the cmxs.patch file,将其添加到已下载的~/.opam/archives/camomile.0.8.5+opam.tar.gz存档,然后发布

$ opam install camomile

的工作。

之后,opam install utop也顺利完成了。

供您参考,我有:

$ opam --version
1.1.1
$ cat .opam/repo/default/repo 
upstream: "https://github.com/ocaml/opam-repository/tree/master/"
browse: "https://opam.ocaml.org/pkg/"