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.
The default SVN install on Mac OS X uses neon. Neon allows you to connect to remote SVN repositories via HTTP and HTTPS. Lines 2-6 installs neon. Line 8 builds SVN using the –with-neon configuration flag. wpadcamp2 Objective Use the command line SVN client on Mac OS X Subversion was built to be used with the command line subversion client (not the bastardized GUI clients that are being sold on the market right now). As such my instructions are for the native command line subversion client “svn” Instructions These instructions detail. → Read More: Howto use command line SVN on.
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
Update: The Command Line Tools for Xcode 5 include SVN 1.7.10.
I downloaded the latest version of Eclipse and Subclipse for my new work Macbook Pro. When I ran
svn
commands in Terminal I received some odd messages. After some confusion, I realized Subclipse checked out the repository using SVN version 1.7. Unfortunately Mac OS X Mountain Lion runs SVN version 1.6.I could have downgraded Subclipse. However, I had already checked out several repositories. Furthermore, I liked the smaller footprint of SVN 1.7. In typical lazy developer fashion, I went with updating SVN to version 1.7 for Mac OS X.
To give due credit, the foundations of this post came from a post on Building SVN 1.7. Although I expanded on it, I encourage you to read the original post. For completeness, I outlined the full process below.
Note: To compile and install SVN 1.7 you need Xcode with the Command Line Tools installed.
Download the SVN Source
Note: You may need to update the
curl
command to download the latest SVN 1.7 source.Build and Install SVN
The default SVN install on Mac OS X uses neon. neon allows you to connect to remote SVN repositories via HTTP and HTTPS. Lines 2-7 installs neon. Line 8 builds SVN using the
--with-neon
configuration flag.Using the New SVN
Svn For Mac
Your environment will still use SVN version installed with Mac OS X:
To use the SVN version you just installed, you can update your
PATH
. Assuming you are using the bash shell, add or edit the following line in your ~/.bash_profile
:![Svn for mac Svn for mac](/uploads/1/2/6/6/126601845/102536012.jpg)
Mac Os Svn Client
You should now see the SVN version you installed:
Mac Svn Tool
Find this interesting? Let's continue the conversation on Twitter.