svn for eclipse on mac os lion

江枫思渺然 提交于 2019-11-30 11:48:08

The issue is that you need the right native Subversion libraries for the version of Subclipse you use. This page has information and a chart of the versions:

http://subclipse.tigris.org/wiki/JavaHL

The binaries on CollabNet website are still for SVN 1.6 so you either need to get SVN 1.7 binaries (MacPorts and Homebrew are good places to get it) or you need to use Subclipse 1.6.x.

Tuyen Dinh

Follow the steps as below to get it working:

  1. Install subclipse via update url: http://subclipse.tigris.org/update_1.8.x
  2. Install subversion using the binary from here: http://www.ubersvn.com/download (scroll down to "Command-Line Client 1.6.18 and 1.7.6 certified by WANdisco" section since that's all you need)
Erik I

I found a solution (download from WanDisco instead of CollabNet) in this thread: Subclipse in Mac OS Lion shows "Unable to load default SVN client" error

I went to this topic because I was in need to make SVN 1.7 to work with subclipse.

For those with the same problem, the easiest way to fix it is to install Subversion and JavaHL from MacPorts.

The packages you need to install with macports are subversion and subversion-javahlbindings (check here), they are both 1.7.1.

With these packages you can install the subclipse using the update site with version 1.8.x. (http://subclipse.tigris.org/update_1.8.x)

If you don't have macports installed follow these instructions. I am sure it will be useful for other things too. You also need to install XCode from AppStore.

Installing the binaries from http://www.wandisco.com/subversion/download#osx fixed this issue for me.

In case anyone using homebrew wants SVN version 1.6 support (as I did due to interacting with some old servers), here is how I got it to work:

Install SVN 1.6 via homebrew:

brew tap homebrew/versions
brew info homebrew/versions/subversion16
brew install homebrew/versions/subversion16 --java

Ensure that /usr/local/bin is in your PATH before /usr/bin, so that homebrew's SVN is ran instead of OS X's.

If using Eclipse:

Be sure to install Subclipse 1.6 (e.g. use the 1.6 update site) instead of the newest one.

If you follow the homebrew formula instructions to link the java library to OS X's Extensions, you do NOT have to edit your Eclipse.ini file to include the path there. For posterity, those commands are:

sudo mkdir -p /Library/Java/Extensions
sudo ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions/libsvnjavahl-1.dylib

HTH

This post resolved my problem: http://bridgetconsulting.com/?p=64 Requires MacPorts

Add to /opt/local/etc/macports.conf this line

universal_archs         i386 x86_64

and run

sudo port install subversion-javahlbindings +no_bdb +universal

I installed subversion 1.7 and the java-hl bindings using homebrew by following the instructions here.

Specifically:

[sudo] brew install subversion --universal --java

Then linking the installed libraries in /Library/Java/Extensions so eclipse picked them up.

/Library/Java/Extensions $ sudo ln -sf /usr/local/lib/libsvnjavahl-1.dylib
/Library/Java/Extensions $ sudo ln -sf /usr/local/lib/libsvnjavahl-1.jnilib

You only installed the Java HL package. Uninstall JavaHL and install the SVN Kit. You can find options for connecting in Preferences -> Team...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!