我在安装依赖于 ocamlfind 的软件包时遇到问题,但在制作时出现 ocamlfind: command not found 错误。
我已经使用 ocaml 包管理器安装了 ocamlfind,并尝试使用“opam reinstall ocamlfind”重新安装。
我还尝试了“eval opam config env”命令来查看是否更新了我的 bin。
有没有人遇到过类似的问题/知道这可能是由什么引起的
运行make时的输出:
make
ocamlfind ocamlc -pp "camlp4o -I lib/dcg -I lib/ipp pa_dcg.cmo pa_ipp.cmo" -w usy -thread -I lib -I lib/dcg -I lib/ipp -c semantics.ml
/bin/sh: ocamlfind: command not found
尝试 ocamlfind 时的输出
ocamlfind
-bash: ocamlfind: command not found
ocaml 已安装
opam install ocamlfind
[NOTE] Package ocamlfind is already installed (current version is 1.5.5).
并且在运行 eval 命令时
eval 'opam config env'
CAML_LD_LIBRARY_PATH="/home/centos/.opam/system/lib/stublibs:/usr/lib64/ocaml/stub libs"; export CAML_LD_LIBRARY_PATH;
MANPATH="/home/centos/.opam/system/man:"; export MANPATH;
PERL5LIB="/home/centos/.opam/system/lib/perl5"; export PERL5LIB;
OCAML_TOPLEVEL_PATH="/home/centos/.opam/system/lib/toplevel"; export OCAML_TOPLEVEL_PATH;
PATH="/home/centos/.opam/system/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/centos/.local/bin:/home/centos/bin"; export PATH;
我在运行 centos 7 的服务器上