我正在尝试为Opam安装uri包,但是我总是遇到这个错误。
==== ERROR [while installing uri.1.3.8] ====
# opam-version 0.9.6 (latest-103-g955b7ca)
# os linux
# command ocaml setup.ml -configure --prefix /root/.opam/system
# path /root/.opam/system/build/uri.1.3.8
# exit-code 1
# env-file /root/.opam/system/build/uri.1.3.8/uri-ffb3fd.env
# stdout-file /root/.opam/system/build/uri.1.3.8/uri-ffb3fd.out
# stderr-file /root/.opam/system/build/uri.1.3.8/uri-ffb3fd.err
### stderr ###
ocamlfind: Package `compiler-libs.toplevel' not found
W: Field 'pkg_compiler_libs_toplevel' is not set: Command ''/root/.opam/system/bin/ocamlfind' query -format %d compiler-libs.toplevel > '/tmp/oasis-85d951.txt'' terminated with error code 2
E: Cannot find findlib package compiler-libs.toplevel
E: Failure("1 configuration error")
'opam install uri' failed.我对Ocaml和Opam repo很陌生。我真的不知道哪里出了问题。我运行的是Ubuntu 12.04,安装了Ocaml 3.12.1。
感谢您能提供的任何见解!
发布于 2013-05-21 03:29:21
我刚刚在3.12.1下安装了uri,没有任何问题。
3.12.1在你的系统ocaml编译器下,对吗?你可能通过智能安装了ocaml?在这种情况下,您还需要安装ocaml-compiler-libs。还有许多用于OCaml的其他可选包,它们通常是需要的,将来可能会遇到--我认为camlp4-extra是另一个遗漏的、经常需要的包。最大的列表是here。
我也会升级OPAM,因为uri包在两天前才有了一些变化。opam update; opam upgrade。这将需要一些重新编译,并确保您切换到正确的编译器。
发布于 2013-05-20 18:02:51
“编译器-libs.toplevel”包丢失。如果我没记错的话,它是和ocaml一起发布的,并且只能从4.0版本开始使用。
请安装较旧版本的uri或将编译器更新到4.0。有关详细信息,请查看here
https://stackoverflow.com/questions/16642050
复制相似问题