"Real World OCaml" Installation Instructions

来源:互联网 发布:北大青鸟消防主机编程 编辑:程序博客网 时间:2024/06/01 12:00


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


0 0
原创粉丝点击