https://github.com/realworldocaml/book/wiki/Installation-Instructions
Ubuntu:
$ sudo add-apt-repository ppa:avsm/ppa
$ sudo apt-get update
$ sudo apt-get install curl build-essential m4 ocaml opam
Configuring OPAM
$ opam init
$ eval `opam config env`
$ printenv OCAML_TOPLEVEL_PATH
/Users/myusername/.opam/4.01.0/lib/toplevel
The next step is to make sure we have the right compiler versioninstalled.
$ opam switch$ opam switch 4.01.0
$ eval `opam config env`
$ opam install core utop
other library
$ opam install \
async yojson core_extended core_bench \
cohttp async_graphics cryptokit menhir



被折叠的 条评论
为什么被折叠?



