Today’s project: get subversion working again on the iMac.
Step 1: update MacPorts.
sudo port -d selfupdate
(If you forget the sudo part, the update fails with strange errors.)
Oops:
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/base': configure: error: no acceptable C compiler found in $PATH
Looks like I need to get XCode working first.
I was under the impression that the Snow Leopard installer also installed XCode: the installer had a check box (that I checked) implying as much. But the iMac still has XCode 3.1, which is the Leopard version. Time to upgrade.
Off to https://developer.apple.com/mac/ for XCode 3.2, which at 749MB is a rather substantial download. This might take a while.
Later: download complete. (It took nearly an hour.) Now installing.
XCode installed. Second try at updating MacPorts:
Congratulations, you have successfully installed the MacPorts system.
Yay.
However: MacPorts does not show Subversion as installed. This is because Subversion is, as of OS X 10.5, built in.
I knew that. Oops.
My repository is intact, and accessible from the command line on the iMac. So the only problem is getting at it via http. Investigation continues.
Later: It appears that the Snow Leopard upgrade removed /etc/apache2/other/svn.conf, which is why web access to the subversion repository is currently broken. Following the directions given in the very useful article How To: Manage Your Own Subversion Repository In Leopard (which is still online, at a different url than it used to be), I recreated svn.conf, pasted
LoadModule dav_svn_module /usr/libexec/apache2/mod_dav_svn.so
<Location /svn>
DAV svn
SVNParentPath /Users/Shared/svn
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/apache2/svn-auth-file
Require valid-user
</Location>
into it, restarted Apache – and there was joy in Muddville. I can browse the repository, command-line svn works, etc., etc.
(The other half of the Apache configuration – /etc/apache2/svn-auth-file – survived the Snow Leopard upgrade, so I didn’t have to create it.)
Next: getting MySQLdb working with Python 2.6, so I can use my pedometer web thingy again. I took some notes, when I installed MySQLdb on Leopard, last year. Maybe last year’s incantations will work on this year’s OS X.