Oh, man. open Core.Std
is not a bash command. You need to open OCaml toplevel (i.e. to execute utop
or ocaml
) and execute this command there. Probably it is not written explicitly in manual. If you see
#use "topfind";;
#thread;;
#camlp4o;;
#require "core.top";;
#require "core.syntax";;
It means that you should enter (or add to .ocamlinit) this by hand. I mean that you should enter #
too. So, if you will use ocaml
you will see two #
. It's normal.
About OCaml init file. As you see they refer to it as ~/.ocamlinit
. Character ~
means home directory in POSIX systems. So you will probably need some GUI text editor (gedit
or kwrite
, for example), create new file, put content there ans save it you home directory. N.B. POSIX systems have no concept of file extension, i.e. leading dot is part of file name.