【发布时间】:2014-06-06 18:28:57
【问题描述】:
我是 ocaml 的新手。我正在尝试使用 OPAM 1.1.1 安装 core 和 utop 但是我得到以下信息:
mario@mario-VirtualBox:~$ opam install core
The following actions will be performed:
- install ocamlfind.1.4.0 [required by core]
- install type_conv.111.13.00 [required variantslib, pa_test, pa_bench, enumerate, comparelib, bin_prot, custom_printf, fieldslib, pa_ounit, sexplib]
- install pipebang.110.01.00 [required by core]
- install ounit.2.0.0 [required by pa_ounit]
- install herelib.109.35.02 [required by core]
- install variantslib.109.15.03 [required by core]
- install sexplib.111.13.00 [required by core]
- install fieldslib.109.20.03 [required by core]
- install enumerate.111.08.00 [required by core]
- install comparelib.109.60.00 [required by core]
- install bin_prot.111.03.00 [required by core]
- install pa_ounit.109.53.02 [required by core]
- install pa_test.111.08.00 [required by core]
- install typerep.111.06.00 [required by core_kernel]
- install pa_bench.109.55.02 [required by core]
- install custom_printf.111.03.00 [required by core]
- install core_kernel.111.13.00 [required by core]
- install core.111.13.00
18 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
Do you want to continue ? [Y/n] y
=-=-= Synchronizing package archives =-=-=
=-=-= Installing ocamlfind.1.4.0 =-=-=
Building ocamlfind.1.4.0:
./configure -bindir /home/mario/.opam/system/bin -sitelib /home/mario/.opam/system/lib -mandir /home/mario/.opam/system/man -config /home/mario/.opam/system/lib/findlib.conf -no-topfind
make all
make opt
make install
[ERROR] The compilation of ocamlfind.1.4.0 failed.
Removing ocamlfind.1.4.0.
Nothing to do.
[ERROR] Failure while processing ocamlfind.1.4.0
===== ERROR while installing ocamlfind.1.4.0 =====
# opam-version 1.1.1 (71b2a01ee571507c1819fbd282b0500d628f92d3)
# os linux
# command ./configure -bindir /home/mario/.opam/system/bin -sitelib /home/mario/.opam/system/lib -mandir /home/mario/.opam/system/man -config /home/mario/.opam/system/lib/findlib.conf -no-topfind
# path /home/mario/.opam/system/build/ocamlfind.1.4.0
# compiler system (4.01.0)
# exit-code 1
# env-file /home/mario/.opam/system/build/ocamlfind.1.4.0/ocamlfind-2662-c743ac.env
# stdout-file /home/mario/.opam/system/build/ocamlfind.1.4.0/ocamlfind-2662-c743ac.out
# stderr-file /home/mario/.opam/system/build/ocamlfind.1.4.0/ocamlfind-2662-c743ac.err
### stdout ###
# Welcome to findlib version 1.4
# Configuring core...
### stderr ###
# configure: m4 not in PATH; this is required
会不会是OPAM安装不正确?有什么建议可以解决这个问题吗?
【问题讨论】:
-
信息很明确:您需要
m4工具才能完成ocamlfind的编译。因为它与 ocaml 无关,所以这个工具的安装不是由opam负责的,你必须自己做,用你自己的分发包管理器(在类似 Debian 的系统上:apt-get install m4)。