2016-04-07 11 views
1
finden

Ich versuche js_of_eliom zu laufen, aber es scheint, dass es nicht ppx_deriving haben Dies ist die Nachricht bekam ich, wenn ich ein Make tun:js_of_ocaml.ppx ist nicht

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 

Und wenn i eine ocamlfind Abfrage tun js_of_ocaml.ppx ich das bekam:

ocamlfind: Package `js_of_ocaml.ppx' not found 

aber ich habe die ppx_deriving installiert ist, zeigt OPAM Liste es:

ppx_deriving   3.3 Type-driven code generation for OCaml >=4.02 

Ich lief in einem Mac OSX mit El Capitan (10.11) Eine Idee, warum das passiert?

EDIT

Oh sorry, ich habe die js_of_ocaml auch diese installiert, was in meinem ocamlfind erscheint:

λ ~/ 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]) 

Antwort

0

Die ppx_deriving ein Fahrer ist, die unterschiedlichen derivers verwaltet. An sich stellt es keine zur Verfügung. Sie müssen die js_of_ocaml deriver installieren, dass ein Teil des js_of_ocaml Paket ist:

opam install js_of_ocaml 

Als Ergebnis werden Sie es haben:

$ 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]) 
0

Ich fand eine Lösung, um es in ocsigen Probleme berichten über Github https://github.com/ocsigen/eliom/issues/251

ich habe diese:

  • Ich habe opam neu installiert (v.1.2.2), re-init, installiere 4.02.3, utop & eliom. Es funktionierte immer noch nicht. Dann habe ich abgeleitete_ppx.3.0.0 installiert, wie Sie bereits in SO erwähnt haben, und jetzt funktioniert es gut. Danke !