Updating to SVN 1.8 for Mac OSX 10.8

Updated and based off http://jason.pureconcepts.net/2012/10/updating-svn-mac-os-x/

Note: To compile and install SVN 1.8 you need Xcode with the Command Line Tools installed.  This has been tested with SVN 1.8.0 on Mac OSX 10.8 with XCode 4.6.3.

Download the SVN Source

cd ~/Downloads/
curl -o subversion-1.8.0.tar.gz http://archive.apache.org/dist/subversion/subversion-1.8.0.tar.gz
tar -xvf subversion-1.8.0.tar.gz

Build and Install SVN

The default SVN install on Mac OS X uses neon, however the new 1.8 version of SVN only supports serf.

First, create a symlink to your toolchain:

sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain

Then do:

cd ~/Downloads/subversion-1.8.0
sh get-deps.sh serf
cd serf/
./configure
make
sudo make install
cd ..
./configure --prefix=/usr/local --with-serf=/usr/local/serf
make
sudo make install

Almost done…

To use the SVN version you just installed, you need to update your PATH.

Add or edit the following line in your ~/.bash_profile:
export PATH=/usr/local/bin:$PATH

Your system should now report using SVN 1.8.0
svn --version


转载:http://samoldak.com/updating-to-svn-1-8-for-mac-os-x-10-8/

你可能感兴趣的:(Updating to SVN 1.8 for Mac OSX 10.8)