X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=how_to_get_the_programming_languages_running_on_your_computer.mdwn;h=dcd8d1fbe0bfa564cb095001e9941a29f98e6207;hp=d60f8f297dfc9e935f9b8afd1d13faddb3a7c213;hb=fa3cea310b3fe8216e13e4f9a5af77e3df87e264;hpb=8707a1f1ea57b43605eef65fe46f8900b0c6b53d 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 d60f8f29..dcd8d1fb 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 @@ -198,16 +198,15 @@ The current version of Racket is 6.1.1 (released November 2014). Here are the exact steps I just verified worked. Note that I *first installed the Haskell Platform*, described further down this page; that installed some developer tools that were needed to build and install Chicken. If you don't know how to open a Terminal, move between directories, copy / rename / delete files and so on, then you're probably best off not doing this. You could break something. 1. Go to , and click the "Source code" link near the top. Current version is 4.9.0.1, released November 2014. This should fetch a file to your download folder, and will probably automatically unpack that file into a folder, "chicken-4.9.0.1". Click on that folder and press command-C / Copy, then open a Terminal. - 2. In the terminal type `cd` followed by a space, then press command-V / Paste. Then press enter. This will move your session into the folder you just downloaded. - 3. Type `less README` and read that file. - 4. Type `make PLATFORM=macosx XCODE_DEVELOPER= XCODE_TOOL_PATH=/usr/bin PREFIX=$HOME` + 2. In the terminal type `cd` followed by a space, then press command-V / Paste. Then press enter. This will move your session into the folder you just downloaded. + 3. Type `make PLATFORM=macosx XCODE_DEVELOPER= XCODE_TOOL_PATH=/usr/bin PREFIX=$HOME` 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. - 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`. This will download, build, and install a few extensions (Chicken calls them "eggs") relevant to ideas we'll be working with in this course. + 4. Wait a while while Chicken builds. + 5. 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. + 6. At this point you can type `which chicken`. It should give you an answer of "/Users/yourname/bin/chicken". + 7. In your terminal, type `chicken-install r7rs datatype matchable monad`. This will download, build, and install a few extensions (Chicken calls them "eggs") relevant to ideas we'll be working with in this course. * **To install on Mac with MacPorts** @@ -329,10 +328,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. + + + On **Mac with MacPorts**: