如何安装Eliom

时间:2016-09-01 04:01:12

标签: ocaml opam ocsigen

我无法安装Ocsigen项目的eliom

$ opam install eliom
Your request can't be satisfied:
  - No package matches eliom.
$ opam install eliom.5.0.0
Your request can't be satisfied:
  - No package matches eliom.5.0.0.

但令人惊讶的是我可以找到包裹:

$ opam show eliom
             package: eliom
             version: 5.0.0
          repository: default
        upstream-url: https://github.com/ocsigen/eliom/archive/5.0.0.tar.gz
       upstream-kind: http
   upstream-checksum: dcd4c6b7b09a9ac233cb6db4605c233e
            homepage: http://ocsigen.org/eliom/
         bug-reports: https://github.com/ocsigen/eliom/issues/
            dev-repo: https://github.com/ocsigen/eliom.git
              author: dev@ocsigen.org
             license: LGPL-2.1 with OCaml linking exception
             depends: ocamlfind & camlp4 <= 4.02+6 & deriving >= 0.6 & (base-no-ppx | ppx_tools >= 0.99.3) & js_of_ocaml > 2.6 & tyxml > 3.5.0 & calendar & ocsigenserver >= 2.6 & ipaddr >= 2.1 & reactiveData >= 0.2 & base-bytes
   installed-version: 
  available-versions: 2.2.2, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 4.0.0, 4.1.0, 4.2.0, 5.0.0
         description: Framework for programming Web sites and client/server Web applications.

我做错了什么?

1 个答案:

答案 0 :(得分:1)

你应该声明:

  • opam --version
  • 获得的opam版本
  • opam switch
  • 获得的当前opam开关

令人困惑的消息是OPAM 1.2.2的已知问题:https://github.com/ocaml/opam/issues/2526

我的猜测是你正在使用OCaml 4.03.0。您无法满足安装eliom.5.0.0所需的条件。根据{{​​1}},您需要OCaml 4.02.x.有关详细信息,请参阅https://github.com/ocsigen/eliom/issues/324