公告
财富商城
积分规则
提问
发文
2019-08-06 08:06发布
Fickle 薄情
After the installation of opam, it asks to do eval `opam config env`.
opam
What is the exact usage of it?
It will setup environment variables, that are necessary for the toolchain to work properly, e.g., CAML_LD_LIBRARY_PATH.
CAML_LD_LIBRARY_PATH
It is like activating virtual environment in Python's virtualenv.
virtualenv
If you want to see what variables are set exactly, the you can run it without the eval part:
$ opam config env CAML_LD_LIBRARY_PATH="/home/ivg/.opam/4.02.1/lib/stublibs"; export CAML_LD_LIBRARY_PATH; MANPATH=":/home/ivg/.opam/4.02.1/man"; export MANPATH; PERL5LIB="/home/ivg/.opam/4.02.1/lib/perl5:"; export PERL5LIB; OCAML_TOPLEVEL_PATH="/home/ivg/.opam/4.02.1/lib/toplevel"; export OCAML_TOPLEVEL_PATH; PATH="/home/ivg/.opam/4.02.1/bin:/home/ivg/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"; export PATH;
最多设置5个标签!
It will setup environment variables, that are necessary for the toolchain to work properly, e.g.,
CAML_LD_LIBRARY_PATH
.It is like activating virtual environment in Python's
virtualenv
.If you want to see what variables are set exactly, the you can run it without the eval part: