Upgrade Subversion on Mac OS X using MacPorts
Disclaimer: I have no idea if this is the best or cleanest way to replace the svn used by Mac OS X, but it's what worked.
(I did not use this way, "Upgrade subversion client on mac osx," gridshore.nl/2008/12/21/upgrade-subversion-client-on-mac-osx/ )
Instead, I used MacPorts:
http://www.macports.org/ports.php?by=name&substr=subversion
I didn't follow these instructions at all, but here they are:
http://trac.macports.org/wiki/howto/Subversion
Be very very cautious before doing this. Make sure that you can use your subversion at its new location.
/opt/local/bin/svn
in my case
Run commands from that path and use it a bit before deleting your old files and symlinking to the new MacPorts-installed Subversion.
cd /usr/bin
sudo rm svn*
sudo ln -s /opt/local/bin/svn svn
sudo ln -s /opt/local/bin/svnadmin svnadmin
sudo ln -s /opt/local/bin/svndumpfilter svndumpfilter
sudo ln -s /opt/local/bin/svnlook svnlook
sudo ln -s /opt/local/bin/svnserve svnserve
sudo ln -s /opt/local/bin/svnsync svnsync
sudo ln -s /opt/local/bin/svnversion svnversion
Comments
Problem with Commands
Hello,
Your first command should be cd /usr/bin. If you run the commands in the /opt/local/bin directory like I did using copy and paste, you will delete the MacPorts subversion files since the change directory command will fail and you will be forced to install the MacPorts subversion again.
Regards,
Marcus
You ar right.
Thanks man,
You really helped me to decide. I thought about getting rid of os x developer tools svn (subversion) version in the same way. Just wasn't sure, is there any other 'the right' way :).
But as yours' is the only one i managed to find and it works - decision is clear.
Come on my handy rm and ln -s, we got'a job to do ;)
simpler solution?
if you change accordingly your path with
export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin:$PATH
for instance, then
$ echo $PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/texbin:/Users/lup/lib/python2.6/site-packages/:/Developer/usr/bin:/Developer/usr/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/Users/lup/bin:/usr/local/bin
$ which svn
/opt/local/bin/svn
cheers!
PS: you really should correct the first line of your command
Post new comment