Ocaml and Opam: unbound module Core

后端 未结 2 534
轻奢々
轻奢々 2020-12-23 09:09

I\'m trying to get an ocaml environment set up, and I\'ve followed the instructions from appendix A of the Real World Ocaml beta. I set up opam, and installed a version of o

相关标签:
2条回答
  • 2020-12-23 09:48

    So I jumped the gun a bit. I forgot to add some items to my ~/.ocamlinit file. Specifically I forgot to add

    #use "topfind"
    #camlp4o
    #thread
    #require "core.top"
    #require "core.syntax"
    

    as mentioned in Chapter 1. D'oh!

    0 讨论(0)
  • 2020-12-23 09:59

    Please follow the steps in the Real World OCaml Wiki - Installation Instructions.

    Under Setting up and using utop, the instructions state that you should add:

    #use "topfind";;
    #thread;;
    #camlp4o;;
    #require "core.top";;
    #require "core.syntax";;
    

    to your ~/.ocamlinit file.

    0 讨论(0)
提交回复
热议问题