update installation for OCaml
[lambda.git] / how_to_get_the_programming_languages_running_on_your_computer.mdwn
index 5524735..e83e7ca 100644 (file)
@@ -286,10 +286,16 @@ The current version of OCaml is 4.02.1 (released October 2014).
     2.  Open a terminal and type:
         
             sudo mkdir -p /usr/local/bin
-            sh /path/to/opam_installer.sh /usr/local/bin
+            sudo sh /path/to/opam_installer.sh /usr/local/bin
 
         Except replace `/path/to` with the real location, that you noted in step 1.
 
+    3.  If that works, then type:
+
+            opan init --comp 4.01.0
+
+        or whatever it was that the OPAM installer prompted you to type. This will download and install a fresh version of OCaml, and will take a bit of time.
+
 <!--
 If you do have Xcode, and want to do without MacPorts, then
 what you need to do is download Findlib from