Macos 找不到_ocaml.ppx的js_

Macos 找不到_ocaml.ppx的js_,macos,ocaml,opam,js-of-ocaml,ocsigen,Macos,Ocaml,Opam,Js Of Ocaml,Ocsigen,我试图运行js_of_eliom,但它似乎没有ppx_派生 这是我做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: *** [_cli

我试图运行js_of_eliom,但它似乎没有ppx_派生 这是我做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_,opam列表显示:

ppx_deriving           3.3  Type-driven code generation for OCaml >=4.02
我和el capitan一起在MacOSX上跑步(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])

ppx_派生
是一个驱动程序,它管理不同的派生程序。它本身并没有提供任何帮助。您需要安装
js\u of_ocaml
deriver,它是
js\u 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])

ppx_派生
是一个驱动程序,它管理不同的派生程序。它本身并没有提供任何帮助。您需要安装
js\u of_ocaml
deriver,它是
js\u 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])

我通过github在ocsigen问题报告中找到了解决方案

我这样做:

  • 我已重新安装opam(v.1.2.2),重新初始化,安装4.02.3,utop和eliom。它仍然不起作用。然后我安装了deriving_ppx.3.0.0,正如您在SO中提到的,现在它工作正常。谢谢
我通过github在ocsigen问题报告中找到了解决方案

我这样做:

  • 我已重新安装opam(v.1.2.2),重新初始化,安装4.02.3,utop和eliom。它仍然不起作用。然后我安装了deriving_ppx.3.0.0,正如您在SO中提到的,现在它工作正常。谢谢