From e5ee363a2fc2f525dec7830b9ae3f1c7ce1f0992 Mon Sep 17 00:00:00 2001 From: Jim Date: Sat, 31 Jan 2015 13:56:03 -0500 Subject: [PATCH] update installation for OCaml --- ...t_the_programming_languages_running_on_your_computer.mdwn | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/how_to_get_the_programming_languages_running_on_your_computer.mdwn b/how_to_get_the_programming_languages_running_on_your_computer.mdwn index 848bd528..6fab52a3 100644 --- a/how_to_get_the_programming_languages_running_on_your_computer.mdwn +++ b/how_to_get_the_programming_languages_running_on_your_computer.mdwn @@ -310,7 +310,7 @@ The current version of OCaml is 4.02.1 (released October 2014). You can install the current version of OCaml (4.02.1, from October 2014), together with the Findlib add-on and OPAM package manager, by opening a Terminal and typing: - sudo port install ocaml caml-findlib opam + sudo port install ocaml ocaml-findlib opam As with Scheme, it's helpful to also have rlwrap installed, and to start OCaml as `rlwrap ocaml`. This gives you a nice history of the commands you've already typed, which you can scroll up and down in with your @@ -321,10 +321,18 @@ The current version of OCaml is 4.02.1 (released October 2014). Use your packaging system, for example, open a Terminal and type: - sudo apt-get install ocaml ocaml-findlib opam + sudo apt-get install ocaml opam camlp4-extra ocaml-findlib That will install a version of OCaml and the Findlib add-on and OPAM package manager. + If you're using Ubuntu "Utopic" (14.10), there's [a note on the OPAM home page](https://github.com/ocaml/opam) + warning that its version of OPAM is broken, and not to use it. Here's how you can get (OCaml and) OPAM from a newer repository: + + sudo apt-get install -y software-properties-common + sudo apt-apt-repository -y ppa:avsm/ppa + sudo apt-get update + sudo apt-get install ocaml opam + If for some reason you can't get OCaml through your packaging system, you can go to . -- 2.11.0