After fresh Yosemite install SVN version is pretty old (I had 1.7.17), but don’t worry – upgrade process is simple but will take some time (15-25 mins depends on your CPU speed). This tutorial assumes you have XCode installed (but if you need SVN you probably have it):
1. Open terminal and paste
sudo -s
2. Create link to toolchain:
ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain
3. Download and unpack SVN 1.8.9:
cd ~/Downloads/ curl -o subversion-1.8.9.tar.gz http://archive.apache.org/dist/subversion/subversion-1.8.9.tar.gz tar -xvf subversion-1.8.9.tar.gz
4. Compile and install:
cd ~/Downloads/subversion-1.8.9 sh get-deps.sh serf cd serf/ ./configure make make install cd .. ./configure --prefix=/usr/local --with-serf=/usr/local/serf make make install
5. Check version:
svn --version
You should see something like this:
svn, version 1.8.8 (r1568071)
(yes, I know I downloaded 1.8.9 but it shows 1.8.8 somehow…)
Does Xcode Source Control work with a upgraded (to 1.8) ?working copy
I’m not using XCode source control, doing everything in console
Thanks for article, I am trying to upgrade svn on my mac
I am getting following error when I tried to configure inside surf directory, I shall be thankful for any help.
Configuring Apache Portable Runtime Utility library…
checking for APR-util… yes
checking for gcc… /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… configure: error: in `/Users/Rakesh/Downloads/subversion-1.8.9/serf’:
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `–host’.
See `config.log’ for more details
My guess is you upgraded Xcode but didn’t install the Command Line Tools.
You can install in terminal “$ xcode-select –install”
ref:
http://railsapps.github.io/xcode-command-line-tools.html
Once I’m out of sudo session svn –version shows old version again. How to fix that.
Thanks in advance
just:
source ~/.bash_profile
I’m getting cross compilation error. while i’m in step 4: ./configure
checking for APR-util… yes
checking for gcc… /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/bin/cc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… configure: error: in `/Users/Kumarraj/Downloads/subversion-1.8.9/serf’:
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `–host’.
See `config.log’ for more details