我正在嘗試安裝Opam的uri軟件包,但我一直在運行這個錯誤。'opam install uri'failed
==== 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回購。我真的不知道發生了什麼問題。我運行Ubuntu 12.04並安裝了Ocaml 3.12.1。
感謝您提供的任何見解!
如果確實如此 - 我不懷疑 - 那麼這是opam-repository中URI包配置的問題。他們應該在其配置中指定最低版本的OCaml。 – nlucaroni
OPAM軟件包創建者不是全能的,他們的測試資源是有限的。如果您發現環境中的opam文件配置有誤,請通過https://github.com/OCamlPro/opam/issues報告問題。 – camlspotter