title | author | date |
---|---|---|
Installing XCode, Haskell, and Pandoc on older versions of Mac OSX |
Cole Sayer |
December 6, 2014 |
This tutorial is for those of you who have outdated versions of Mac OSX. The biggest hurdle for me has been successfully installing add-ons like XCode and Pandoc as the newest releases are in general only compatible with the latest operating system. I am currently working on an older MacBook Pro with OSX 10.7.3, but the following guide should work for 10.6 and later.
The following tutorial should be followed sequentially. To install Haskell you will need XCode, and to install Pandoc you will need Haskell. All terminal commands will be in bold.
First you will need Xcode. Or more specifically, you will need the Command Line Tools which are a part of Xcode. You can’t find previous versions of Xcode at the App Store. Instead you have to go to Apple’s IOS Developer site.
- Go to https://developer.apple.com/downloads/index.action to access the downloads page for older versions of Xcode.
- Log in using your Apple ID or you may have to first create a developer ID and then log in.
- Locate the link for Command Line Tools that corresponds to your version of OSX.
- Download, double click the package icon, and follow the instructions to install.
Now that you have the Command Line Tools, you will be able to download and install the Haskell Platform. The Haskell platform is a collection of software packages, tools, and libraries that resolve many of the compatibility issues between machines.
- Go to https://www.haskell.org/platform/mac.html to access the downloads page for Haskell Platform.
- Click the download link, double click the package icon, and follow the instructions to install. (The Haskell platform takes up a lot of space 1.16gb)
- Once Haskell is installed, open your terminal.
- Type: ghci press enter.
- You will see a few lines of text ending with the word prelude. This will confirm Haskell is installed.
- hold: ctrl d to exit from Haskell.
Now that Haskell is installed, we can download and install Pandoc directly from the terminal.
- Still in terminal, type: cabal update
- Then type: cabal install pandoc
- This will run for quite a while. It took my computer nearly an hour.
- Next, type the following line: export PATH="$HOME/Library/Haskell/bin:$PATH"
- Finally, type: pandoc --version to confirm that pandoc is installed.