问题1 出现错误:
Build dependency: Please install the Objective Caml compiler (ocaml-nox) v3.12 or later
解决方法
sudo apt-get install ocaml
问题2 编译 过程中出现:
coccinelle-coccinelle-1.0.0-rc24
/bin/sh: 1: ocamlfind: not found
解决方法
opam update
apt-get install ocaml-findlib
问题3:编译过程中 出现
Error: Unbound module Parmap
解决方法:
opam switch 4.02.3
eval $(opam config env)
opam install ocamlfind
opam install camlp4
问题4:[ERROR] Your version of OPAM (1.1.1) is not recent enough to read 问题解决
方法1
wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin/
opam init
方法2
sudo add-apt-repository ppa:avsm/ppa
sudo apt-get update
sudo apt-get install ocaml ocaml-native-compilers camlp4-extra opam
:
问题5:Error: commons/common.cmi
is not a compiled interface for this version of OCaml.
It seems to be for an older version of OCaml.
opam update