OCaml: Can't run utop after installing it

前端 未结 4 1307
北荒
北荒 2021-02-20 10:42

I\'m trying to learn OCaml through the Real World OCaml book. They have a guide by which I am supposed to install the Core package and utop. However, while I seem to be successf

4条回答
  •  生来不讨喜
    2021-02-20 11:02

    Regarding utop, it seems that you don't have in your $PATH. Did you do:

    $ eval `opam config env`
    

    If you want opam to be correctly automatically setup in your new shells you should add the following to your .bashrc:

    . ~/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
    

    As for not being able to open Core.Std, you won't of course be able to open it in your shell, this command must be issued in utop.

提交回复
热议问题