comment
[lambda.git] / how_to_get_the_programming_languages_running_on_your_computer.mdwn
index d60f8f2..1a44722 100644 (file)
@@ -205,7 +205,7 @@ The current version of Racket is 6.1.1 (released November 2014).
     The options starting with `XCODE_` are to tell the Chicken build scripts that I've got the developer tools installed in my main system, rather than as part of Xcode. (That's where the Haskell Platform installer put them.) Continuing:
 
     5. Wait a while while Chicken builds.
-    6. If it finishes with no errors, then type `make PLATFORM=macosx XCODE_TOOL_PATH=/usr/bin PREFIX=$HOME install`. This will prompt you for your account password, and then install Chicken underneath your `/usr/local` directory.
+    6. If it finishes with no errors, then type `make PLATFORM=macosx XCODE_TOOL_PATH=/usr/bin PREFIX=$HOME install`. This will install Chicken in your user home directory.
     7. At this point you can type `which chicken`. It should give you an answer of "/Users/yourname/bin/chicken".
     8. In your terminal, type `chicken-install r7rs datatype matchable monad`. <!-- with "-sudo" if you installed chicken in /usr/local --> This will download, build, and install a few extensions (Chicken calls them "eggs") relevant to ideas we'll be working with in this course.
 
@@ -329,10 +329,12 @@ The current version of OCaml is 4.02.1 (released October 2014).
 
     3.  If that works, then type:
 
-            opam init --comp 4.02.1
+            opam 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.
 
+<!-- To upgrade: opam switch 4.02.1 && eval `opam config env` -->
+
 <!--
 If you do have Xcode, and want to do without MacPorts, then
 what you need to do is download Findlib from
@@ -371,7 +373,7 @@ double-click and install.
     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 add-apt-repository -y ppa:avsm/ppa
         sudo apt-get update
         sudo apt-get install ocaml opam
 
@@ -427,30 +429,30 @@ On **Mac without MacPorts**:
 
 *   Go to <https://www.haskell.org/platform/mac.html> and follow the instructions. This requires Mac OS X 10.6 / Snow Leopard or later; but there is a link to an earlier version of Haskell Platform, that's built for Mac OS X 10.5 / Leopard. During the installation, you may be prompted to install "the command line developer tools"; this is a portion of what Apple bundles together with Xcode (mentioned above on this page). The installer will take care of getting these for you if you give it permission.
 
-    <!--
-    The Installer places everything in your system directories. If you'd like it instead in your user directory (easier to clean up later), you can do this after running the Installer:
-
-        mkdir ~/Library/Frameworks
-        cp -a /Library/Frameworks/GHC.framework ~/Library/Frameworks/
-        [ -d ~/Library/Haskell ] && mv ~/Library/Haskell ~/Library/Haskell.orig
-        sudo mv /Library/Haskell ~/Library/
-        sudo chown -Rh $USER:staff ~/Library/Haskell
-        mkdir -p ~/share/doc ~/share/man/man1
-        ln -s ~/Library/Frameworks/GHC.framework/Versions/Current/usr/share/doc/ghc ~/share/doc/
-        ln -s ~/Library/Frameworks/GHC.framework/Versions/Current/usr/share/man/man1/ghc.1 ~/share/man/man1/
-        sudo rm -r /usr/share/doc/ghc /usr/share/man/man1/ghc.1 /Library/Frameworks/GHC.framework
-        for f in ghc ghc-7.8.3 ghc-pkg ghc-pkg-7.8.3 ghci ghci-7.8.3 haddock haddock-ghc-7.8.3 hp2ps hpc hsc2hs runghc runghc-7.8.3 runhaskell; do
-          ln -s ~/Library/Frameworks/GHC.framework/Versions/7.8.3-*/usr/bin/$f ~/bin/
-          sudo rm /usr/bin/$f
-        done
-        for f in activate-hs alex cabal cabal.real cabal.wrap ghc-clang-wrapper happy HsColour uninstall-hs; do
-          ln -s /Library/Haskell/ghc-7.8.3-*/bin/$f ~/bin/
-          sudo rm /usr/bin/$f
-        done
-        sed -i "" "s=/Library=$HOME/Library=g" $(fgrep -RIl /Library ~/Library/Haskell ~/Library/Frameworks/GHC.framework | fgrep -v .html)
-
-    # Ehh. Doesn't work...
-    -->
+<!--
+The Installer places everything in your system directories. If you'd like it instead in your user directory (easier to clean up later), you can do this after running the Installer:
+
+    mkdir ~/Library/Frameworks
+    cp -a /Library/Frameworks/GHC.framework ~/Library/Frameworks/
+    [ -d ~/Library/Haskell ] && mv ~/Library/Haskell ~/Library/Haskell.orig
+    sudo mv /Library/Haskell ~/Library/
+    sudo chown -Rh $USER:staff ~/Library/Haskell
+    mkdir -p ~/share/doc ~/share/man/man1
+    ln -s ~/Library/Frameworks/GHC.framework/Versions/Current/usr/share/doc/ghc ~/share/doc/
+    ln -s ~/Library/Frameworks/GHC.framework/Versions/Current/usr/share/man/man1/ghc.1 ~/share/man/man1/
+    sudo rm -r /usr/share/doc/ghc /usr/share/man/man1/ghc.1 /Library/Frameworks/GHC.framework
+    for f in ghc ghc-7.8.3 ghc-pkg ghc-pkg-7.8.3 ghci ghci-7.8.3 haddock haddock-ghc-7.8.3 hp2ps hpc hsc2hs runghc runghc-7.8.3 runhaskell; do
+      ln -s ~/Library/Frameworks/GHC.framework/Versions/7.8.3-*/usr/bin/$f ~/bin/
+      sudo rm /usr/bin/$f
+    done
+    for f in activate-hs alex cabal cabal.real cabal.wrap ghc-clang-wrapper happy HsColour uninstall-hs; do
+      ln -s /Library/Haskell/ghc-7.8.3-*/bin/$f ~/bin/
+      sudo rm /usr/bin/$f
+    done
+    sed -i "" "s=/Library=$HOME/Library=g" $(fgrep -RIl /Library ~/Library/Haskell ~/Library/Frameworks/GHC.framework | fgrep -v .html)
+
+# Ehh. Doesn't work...
+-->
 
 On **Mac with MacPorts**: