macosocamltyperex

How to use ocaml-top


I got a OCaml project for school and downloaded the template project they provide. Theres a file I need to edit called puzzle.ml. How do I use ocaml-top to edit/open the puzzle.ml file. I've been trying to troubleshoot this for hours and still no luck. Any tips or suggestions are appreciated. Thank you for your time!

Using Mavericks


Solution

  • If simply running ocaml-top gives you an error that the command cannot be found, OPAM might not have set your PATH variable correctly, this can be fixed by adding the following to your shell config file:

    export PATH=/Users/$USER/.opam/system/bin:$PATH #for bash
    set PATH /Users/$USER/.opam/system/bin $PATH    #for fish