0
xhy0908deMacBook-Pro:frama-c-Phosphorus-20170501 xhy0908$ ./configure
configure: ******************
configure: * CONFIGURE MAKE *
configure: ******************
checking for make... make
checking version of make... 3.81
configure: *****************************
configure: * CONFIGURE OCAML COMPILERS *
configure: *****************************
checking for ocamlc... ocamlc
checking version of OCaml... 4.05.0
checking OCaml library path... /usr/local/lib/ocaml
checking for ocamlopt... ocamlopt
checking ocamlopt version and standard library... ok
checking for ocamlfind... no
configure: error: Cannot find ocamlfind.

当我尝试在 mac 上启动 Frama-C 并运行 ./configure 命令时。它说它找不到ocamlfind。但我已经安装了它。

xhy0908deMacBook-Pro:frama-c-Phosphorus-20170501 xhy0908$ opam install ocamlfind
[NOTE] Package ocamlfind is already installed (current version is 1.7.3).

我不知道是什么问题......

4

1 回答 1

0

如果您使用的是 OPAM,则需要使用

eval `opam config env`

或者,正如@glennsl 建议的那样,另一种语法,

eval $(opam config env)

此命令将设置 PATH 变量,使其ocamlfind可见。

于 2017-10-25T18:31:42.133 回答