• getting a mac ready for openplans development

last modified September 20, 2007 by rmarianski

Fall 2007


Some of us just got new MacBooks. Here is a log of what I've done to get my MacBook ready for OpenPlans development (work in progress).


Terminal

http://macromates.com/blog/2006/word-movement-in-terminal/

Apple Developer Tools

Xcode (currently 2.4.1), gcc, etc. (requires free ADC registration): download


SVN

Download latest Mac OS X Universal binary from http://downloads.open.collab.net/binaries.html (1.4.4 at present). Make sure /usr/local/bin is in your path.

Python

For Zope 2 (and thus opencore) development, Python 2.4 is required. download: http://python.org/ftp/python/2.4.4/python-2.4.4-macosx2006-10-18.dmg
For Pylons development get the latest Mac release (2.5.1 at present) from http://www.python.org/download
I installed both, but I installed 2.4 after 2.5 so that /Library/Frameworks/Python.framework/Versions/Current points to /Library/Frameworks/Python.framework/Versions/2.4

Workingenv

Check out the latest workingenv (currently 0.6.6) to /usr/local and link to it in /usr/local/bin:
sudo svn co http://svn.colorstudy.com/home/ianb/workingenv /usr/local/workingenv
sudo ln -s /usr/local/workingenv/workingenv.py /usr/local/bin/
If workingenv gets updated just run "sudo svn up /usr/local/workingenv" and you'll have the latest.

WordPress

Get MAMP (Macintosh, Apache, MySQL, and PHP)
download from http://www.mamp.info/en/download.html
download latest WordPress release from http://wordpress.org/download/
extract the wordpress folder and move it to /Applications/MAMP/htdocs

Enabling mod_rewrite

By default, Mac OS X's apache isn't configured to allow url rewriting with mod_rewrite.  This is annoying.  Here's how to to fix it.

Gotchas to build opencore

Install the latest gzip package (currently 1.3.9): as root, download and extract to e.g. /usr/local/src/gzip and from there run:
./configure --prefix=/usr/local
make
make install
Get latest wget (currently 1.9) and do the same as above
Get RapidoSMTP to enable Mac OS X's built in postfix server and make it start automatically

Image Libraries (to build):

http://sourceforge.net/projects/libungif
http://sourceforge.net/projects/libpng
http://freshmeat.net/projects/libtiff
libjpeg (and bug):
http://www.kyngchaos.com/macosx/install/libjpeg
http://snippets.dzone.com/posts/show/38
http://freshmeat.net/projects/libjpeg

libxml2 libraries

http://www.explain.com.au/oss/libxml2xslt.html#id726303

Ctags

This is useful for jumping to tags with vi/emacs: http://sourceforge.net/projects/ctags/