Updating Subversion in OS X 10.5.6
I’ve been using Aptana for my PHP IDE lately, and it comes with a newer version of the Subversion client libraries than OS X 10.5.6 does. That ended up breaking my ability to use the command line or the IDE interchangeably.
Note: As a precaution, you may want to temporarily move your /usr/lib/libexpat* files out of the way until the compile is completed. They gave me some trouble. When finished you can move them back.
Here are the quick steps I took to compile a new version of Subversion in /usr/local that won’t conflict with future OS X updates:
mkdir ~/svn-src && cd ~/svn-srccurl -O http://subversion.tigris.org/downloads/subversion-1.5.6.tar.bz2curl -O http://subversion.tigris.org/downloads/subversion-deps-1.5.6.tar.bz2tar xvjf subversion-1.5.6.tar.bz2tar xvjf subversion-deps-1.5.6.tar.bz2cd subversion-1.5.6./autogen./configure --prefix=/usr/local --with-sslmakesudo make install
After you’ve compiled and installed, you want to move /usr/local/bin to the front of your $PATH. To do so, edit your ~/.profile (or create it) and add the line:
export PATH=/usr/local/bin:$PATH
Open up a new Terminal session and type:
svn --version
You should see a first line of output like:
svn, version 1.5.6 (r36142)
That’s it!
Monday, March 16 8:17 AM
Why go through all of this trouble when there is a more comprehensive Subversion installer available here: http://tinyurl.com/svn-osx ? It leaves the default Leopard install in tact, includes all language bindings, all repository access layers, all network modules and all repository back ends. It’s even 4-way universal and packaged into a graphical installer. What else do you need?
Monday, March 16 11:50 PM
Hey Jeremy, thanks for the tip! I suppose the only advantage to compiling would be the freedom to update independent of the installer (especially if it started to be neglected). I definitely would have favored your link had I found it first.
The really funny thing is I switched to Git yesterday and did use the OS X installer from http://code.google.com/p/git-osx-installer/
-Jeff
Leave a Comment