« Iteration 10 is up | Main | How would you run an open source project? »
February 3, 2006
Adding Custard to a Mac
Carlos, one of our new team members has succeeded in getting Custard to run on his Mac for development purposes. Here's how he did it.
I've got Melt running perfectly on my iBook last night, and just wanted to jot down some notes in case it helps other developers trying to do the same. Here they are.
Mac OS X 10.4 (Tiger) comes with Python 2.3.5 built-in, but that's not enough. The best way to upgrade it (or, rather, install another version) and get everything else up and running is to install DarwinPorts [http://darwinports.com/], and do:
sudo port install python24 py-mx postgresql8 py-psycopg ImageMagick
Go out for a nice walk and a cup of coffee (my iBook G4 1.33ghz took about 4 hours to download, unpack, build and install everything)...
To install PostgreSQL, fire up NetInfo Manager -- careful, you could break your Mac messing about with this thing --, find the 'users' directory, create a new one called 'postgres', save and close. Back in the terminal, do:
sudo passwd postgres
# give it a password
sudo -u postgres bash
mkdir /opt/local/var/pgsql
mkdir /opt/local/var/pgsql/data
ln -s /opt/local/lib/pgsql8/bin /opt/local/bin
initdb -D /opt/local/var/pgsql/data
pg_ctl -D /opt/local/var/pgsql/data start -l /opt/local/var/postmaster.log
createdb melt
exit
Make sure calling 'python' points to 2.4.2 instead of 2.3.5 (adjust symlinks and/or PATH environment variable if necessary) and follow the rest of the directions in the HOWTO. I haven't tested the ImageMagick Python bindings yet, guess a few more steps are necessary to get it to work.
Posted by Martin Lloyd at February 3, 2006 9:53 AM
Trackback Pings
TrackBack URL for this entry:
http://weblog.greenpeace.org/cgi-bin/mv/mt-tb.cgi/1117