我正在尝试运行js_of_eliom,但它似乎没有ppx_deriving --这是我做make时得到的信息:
js_of_eliom -ppx -c -package lwt -package js_of_ocaml.deriving -package js_of_ocaml.ppx simple_pomodoro.eliom
Fatal error: exception Fl_package_base.No_such_package("js_of_ocaml.ppx", "")
make: *** [_client/simple_pomodoro.cmo] Error 2当我执行ocamlfind查询js_of_ocaml.ppx时,我得到了以下内容:
ocamlfind: Package `js_of_ocaml.ppx' not found但是我已经安装了ppx_deriving,opam列表显示了它:
ppx_deriving 3.3 Type-driven code generation for OCaml >=4.02我运行在mac与el (10.11),知道为什么会这样吗?
编辑
哦,对不起,我也安装了js_of_ocaml,这是在我的ocamlfind中出现的:
λ ~/ ocamlfind list | grep js_of_ocaml
js_of_ocaml (version: 2.7)
js_of_ocaml.compiler (version: [distributed with js_of_ocaml])
js_of_ocaml.compiler.with_findlib (version: n/a)
js_of_ocaml.deriving (version: [distributed with js_of_ocaml])
js_of_ocaml.deriving.ppx (version: [distributed with js_of_ocaml])
js_of_ocaml.deriving.syntax (version: [distributed with js_of_ocaml])
js_of_ocaml.graphics (version: [distributed with js_of_ocaml])
js_of_ocaml.log (version: [distributed with js_of_ocaml])
js_of_ocaml.ocamlbuild (version: [distributed with js_of_ocaml])
js_of_ocaml.syntax (version: [distributed with js_of_ocaml])
js_of_ocaml.toplevel (version: [distributed with js_of_ocaml])
js_of_ocaml.tyxml (version: [distributed with js_of_ocaml])
js_of_ocaml.weak (version: [distributed with js_of_ocaml])发布于 2016-04-07 16:22:34
ppx_deriving是一个驱动程序,它管理不同的派生程序。它本身并没有提供任何东西。您需要安装js_of_ocaml派生程序,这是js_of_ocaml包的一部分:
opam install js_of_ocaml因此,你将拥有它:
$ ocamlfind list | grep js_of_ocaml.ppx
js_of_ocaml.ppx (version: [distributed with js_of_ocaml])
js_of_ocaml.ppx.internal (version: [distributed with js_of_ocaml])发布于 2016-04-12 14:20:22
我通过github https://github.com/ocsigen/eliom/issues/251在ocsigen问题报告中找到了解决方案。
我做了这个:
https://stackoverflow.com/questions/36464947
复制相似问题