However I got the following error "! LaTeX Error: File `algorithm2e.sty' not found." Since I am using macport, to resolve this I needed to install the texlive-science package by executing sudo port install texlive-science, and all was good again.
References:
- http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode