我正在尝试学习Ocaml
使用Real World Ocaml。我ocaml
使用 MacPorts 安装。现在,我正在尝试安装ocaml-core-extended
:
$ sudo port install ocaml-core-extended
但在安装依赖项时失败ocaml-bin-prot
:
这是构建日志中的相关部分:
:notice:build ---> 构建 ocaml-bin-prot :debug:build 执行 org.macports.build (ocaml-bin-prot) :debug:build 环境:CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ocaml-bin-prot/ocaml-bin-prot/work/.CC_PRINT_OPTIONS ' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.9' :debug:build 组装命令:'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ocaml-bin-prot/ocaml-bin-prot/work/bin_prot-108.00.02" && /opt/local /bin/ocaml setup.ml -build' :debug:build 执行命令行: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ocaml-bin-prot/ocaml-bin-prot/work/bin_prot-108.00.02" && /opt/local /bin/ocaml setup.ml -build :info:build getconf: 没有这样的配置参数 `LFS64_CFLAGS' :info:build ocamlfind ocamldep -pp 'cpp -traditional -undef -w -DARCH_SIXTYFOUR' -package unix -package bigarray -modules lib/type_class.mli > lib/type_class.mli.depends :info:build + ocamlfind ocamldep -pp 'cpp -traditional -undef -w -DARCH_SIXTYFOUR' -package unix -package bigarray -modules lib/type_class.mli > lib/type_class.mli.depends :info:build 文件“lib/type_class.mli”,第 68 行,字符 16-20: :info:build 错误:语法错误 :info:build 命令以代码 2 退出。 :info:build E: Failure("命令 '/opt/local/bin/ocamlbuild lib/libbin_prot_stubs.a lib/dllbin_prot_stubs.so lib/bin_prot.cma lib/bin_prot.cmxs lib/bin_prot.cmxa lib/bin_prot.a 语法/pa_bin_prot.cma -tag debug' 以错误代码 10 终止") :info:build 命令失败:cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ocaml-bin-prot/ocaml-bin-prot/work/bin_prot-108.00.02" && /opt/local/ bin/ocaml setup.ml -build :info:build 退出代码:1 :error:build org.macports.build for port ocaml-bin-prot 返回:命令执行失败
我看了看,lib/type_class.mli
我不知道为什么会有语法错误。这只是一个宏扩展。我希望我的错误报告比“这里有问题”好一点。
那么,有人遇到过这种故障吗?有什么提示吗?
$ unname -a Darwin zzzz.local 13.0.0 达尔文内核版本 13.0.0:2013 年 9 月 19 日星期四 22:22:27 PDT; 根:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
$ ocaml -版本 OCaml 顶层,版本 4.01.0
$ cpp --版本 Apple LLVM 5.0 版(clang-500.2.79)(基于 LLVM 3.3svn) 目标:x86_64-apple-darwin13.0.0 线程模型:posix