ソフトウェアの更新を間違えたため、OUnit テストを実行できません。
問題を単純な REPL セッションに要約することができたと思います。
$ ocaml -I /opt/local/lib/ocaml/site-lib/oUnit OCaml version 4.01.0 # Ounit.assert_equal;; Error: Wrong file naming: /opt/local/lib/ocaml/site-lib/oUnit/ounit.cmi contains the compiled interface for Ounit when OUnit was expected # OUnit.assert_equal;; Error: Reference to undefined global `OUnit'
私が間違っていることはありますか?
デフォルトの大文字と小文字を区別しない/大文字と小文字を保持するファイルシステムを備えたMacラップトップでこれを実行していますが、インクルードパスの大文字と小文字を区別しても役に立ちません。
私のより大きな問題は次のように現れます。
ocamlbuild \ -libs \ nums,str,unix,oUnit,graph \ -cflags \ -g,-w,+a-4,-warn-error,+a-4,-I,/opt/local/lib/ocaml/site-lib/oUnit,-I,/opt/local/lib/ocaml/site-lib/ocamlgraph \ -lflags \ -g,-I,/opt/local/lib/ocaml/site-lib/oUnit,-I,/opt/local/lib/ocaml/site-lib/ocamlgraph \ ./AllTests.native Error: No implementations provided for the following modules: OUnitCore referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit2), /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit) OUnitLoggerStd referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit) OUnitUtils referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit2), /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit) OUnitConf referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit2), /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit) OUnitAssert referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit2), /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit) OUnitBracket referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit2), /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit) OUnitTest referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit2), /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit) OUnitRunner referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit) OUnitChooser referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit) OUnitLogger referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit2), /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit) OUnitTestData referenced from /opt/local/lib/ocaml/site-lib/oUnit/oUnit.cmxa(OUnit2) Command exited with code 2. Compilation unsuccessful after building 646 targets (645 cached) in 00:00:02.