Cornerstone is a GUI for Subversion written with Xcode for MacOS X. SmartSVN provides a similar Explorer integration, but also can be used as a standalone SVN client for different platforms. SnailSVN for mac中文版是一款与与访达集成的SVN客户端,SnailSVN 为 Finder 中的 SVN 工作副本文件添加状态图标,并在文件改动时自动更新状态图标,让工作副本中文件的状态一目了然,并允许你从 Finder 的上下文.
After upgrading to Mountain Lion, I realized that subversion (svn) was missing. Since I happened to install a new version of eclipse I first thought the problem was with my eclipse install but after wasting way too much time trying to fix it in eclipse I realized my problem was somewhere else…
So here’s what I did to fix it. SVN is part of the Command Line Tools. To install them go to Downloads for Apple Developers. This requires an Apple Developer ID. Getting one is free and only requires an Apple ID which you should all already have.
There select Command Line Tools (OS X Mountain Lion) and download the DMG file (it’s about 110 MB). Then open the DMG file, double click on Command Line Tools (Mountain Lion).mpkg, just keep clicking Continue / Agree / Install.
An alternative is to install Xcode. You can download it from the Mac App Store. Once Xcode is installed, you can go the Preferences > Downloads > Command Line Tools and install them.
The downside of this method is that you have to install Xcode which is a waste of space (1.5 GB download and 3.3 GB install) unless you develop for Mac OS X or iOS. But if like me you have Xcode installed anyway…
Once you’ve installed the Command Line Tools, you can check whether SVN is installed and whether you have the right version (1.6.18) opening a Terminal and typing the following:
That’s it !
Update: Another way is to use Homebrew or MacPorts.
With Homebrew installed, open a Terminal window and type the following:
If you get the following error:
You will need to type the following:
The replace the two lines with url and md5 by:
Save and rerun the install of subversion. If you get the following error message:
This means that your HomeBrew installation should be updated. It should fetch subversion 1.7.5 instead of 1.7.4. You can update it with the following command:
Then rerun the subversion install.
If the installation of subversion or an upgrade to a newer version gets stuck (this happens to me every time), with the following last line written to the console:
Just kill it with CTRL-C and restart it. In my case, it always gets stuck for hours the first time and works the second time…
After the install, you might see when running svn –version that it doesn’t say 1.7.5. This is because the new version is installed in /usr/local/bin and there is an older version in /usr/bin. If your PATH looks like this:
Then you’ll see the svn program in /usr/bin because it is before the /usr/local/bin in PATH. So you need to update your PATH so that /usr/local/bin comes before /usr/bin:
There add /usr/local/bin:
If you want to have a subversion integration in Eclipse, you’ll need the java bindings. To install them using Homebrew execute the following:
Universal means it will install both 32 and 64bit version (without this the java bindings will most probably not work fine). And the Java option tells Homebrew to additionally install the Java bindings.
If you’ve already installed subversion using Homebrew without the java bindings, you can just uninstall it and reinstall it with the bindings:
If you get messages saying you need to first remove some packages, remove them, they will be reinstalled when installing subversion, e.g. I had to remove neon and serf:
After installing with the bindings, there will be some instructions about links to be created. It’s important to create these links. On my machine and with subversion 1.7.7, it said:
Unfortunately, on my machine the Eclipse integration still didn’t work… Until I noticed the instructed linked was not completely right:
So basically the link was created with the wrong them. So just had to do the following to solve the problem:
If like Julio, you have some error messages related to libpq.5.dylib having a wrong architecture, you can try the following:
This will find all occurrences of this library. On my machine, it found it there:
Checking the one in /usr/lib, you see that it’s a 64bit only library:
But the php library was both 32 and 64bit:
So you probably only need to replace the one in /usr/lib by this one:
If you still have problems when integrating svn with eclipse, please a have look at this post.
Note that I’ve written a new post to show how to handle multiple subversion version using brew.
Related posts:
Skip to end of metadataGo to start of metadataUsing Subversion On Mac OS X For Version Control
-Don't use SVN in Apple's command line tools package
-Don't get SVN with MacPorts either
-Get SVN with Homebrew brew install --universal --java subversion
-When this hangs in the middle of installation, cancel with control-c and re-run the preceding step. If Homebrew gives you cleanup instructions, follow them.
-The second execution of the aforementioned install should succeed.
Free Svn Client For Mac
-Create a symlink to make JavaHL visible to Java (this will allow the Subclipse Eclipse plugin to find it): sudo ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions
Svn For Mac Download
-Now the new svn installed by homebrew should be at /usr/local/Cellar/subversion/1.7.7/bin/svn with a symlink already pointing to this at /usr/local/bin/svn. Make sure /user/local/bin/svn is before all other SVNs in your shell's path and you should be using this preferred Subversion that actually works with the emoryoit repository.