svn for eclipse on mac os lion
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8102759/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
svn for eclipse on mac os lion
提问by vietstone
I need to use Subversion with Eclipse on Mac Lion. I encounter problem as below
我需要在 Mac Lion 上使用 Subversion 和 Eclipse。我遇到如下问题
I saw: Subclipse in Mac OS Lion shows "Unable to load default SVN client" error
我看到:Mac OS Lion 中的 Subclipse 显示“无法加载默认 SVN 客户端”错误
In my context:
在我的上下文中:
- I use Mac OS Lion 10.7.2
- Eclipse version: 3.7.1 64 bit
- I install Subversion: Universal Subversion 1.6.17 Binaries for Lion (Mac OS X 10.7)in the page: http://www.open.collab.net/downloads/community/
- I install Subclipse by the "Install New Software..." feature of Eclipse with the update link: http://subclipse.tigris.org/update_1.8.xIt install Subclipse 1.8.2, JavaHL 1.7.1.1 and some other packages.
- When I go to menu Preferences/ Team / SVN , it produce error: "Incompatible JavaHL library loaded. 1.7.x or later required."
- I find to install SVN Kit, so use it instead of JavaHL as the very first link refer (here), but I don't see it in Subclipse package.
- 我使用 Mac OS Lion 10.7.2
- Eclipse 版本:3.7.1 64 位
- 我在页面中安装了 Subversion: Universal Subversion 1.6.17 Binaries for Lion (Mac OS X 10.7):http: //www.open.collab.net/downloads/community/
- 我通过带有更新链接的 Eclipse 的“安装新软件...”功能 安装 Subclipse :http: //subclipse.tigris.org/update_1.8.x它安装 Subclipse 1.8.2、JavaHL 1.7.1.1 和其他一些包。
- 当我转到菜单 Preferences/Team/SVN 时,它会产生错误:“加载了不兼容的 JavaHL 库。需要 1.7.x 或更高版本。”
- 我发现要安装 SVN Kit,所以使用它而不是 JavaHL 作为第一个链接引用(这里),但我没有在 Subclipse 包中看到它。
采纳答案by Mark Phippard
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:
问题是您需要为您使用的 Subclipse 版本提供正确的本地 Subversion 库。此页面包含版本信息和图表:
http://subclipse.tigris.org/wiki/JavaHL
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.
CollabNet 网站上的二进制文件仍然适用于 SVN 1.6,因此您要么需要获取 SVN 1.7 二进制文件(MacPorts 和 Homebrew 是获取它的好地方),要么需要使用 Subclipse 1.6.x。
回答by Tuyen Dinh
Follow the steps as below to get it working:
请按照以下步骤使其工作:
- Install subclipse via update url: http://subclipse.tigris.org/update_1.8.x
- 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)
- 通过更新 url 安装 subclipse:http: //subclipse.tigris.org/update_1.8.x
- 使用这里的二进制文件安装 subversion:http: //www.ubersvn.com/download(向下滚动到“由 WANdisco 认证的命令行客户端 1.6.18 和 1.7.6”部分,因为这就是你所需要的)
回答by 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
我在此线程中找到了一个解决方案(从 WanDisco 而不是 CollabNet 下载):Mac OS Lion 中的 Subclipse 显示“无法加载默认 SVN 客户端”错误
回答by twelve17
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:
如果使用自制软件的任何人都需要 SVN 1.6 版支持(就像我因为与一些旧服务器交互而做的那样),以下是我让它工作的方法:
Install SVN 1.6 via homebrew:
通过自制软件安装 SVN 1.6:
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.
确保/usr/local/bin
在您的PATH
before 中/usr/bin
,以便运行自制软件的 SVN 而不是 OS X 的。
If using Eclipse:
如果使用 Eclipse:
Be sure to install Subclipse 1.6 (e.g. use the 1.6 update site) instead of the newest one.
确保安装 Subclipse 1.6(例如使用 1.6 更新站点)而不是最新的。
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:
如果您按照自制程序公式说明将 java 库链接到 OS X 的扩展,则不必编辑 Eclipse.ini 文件以包含其中的路径。对于后代,这些命令是:
sudo mkdir -p /Library/Java/Extensions
sudo ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions/libsvnjavahl-1.dylib
HTH
HTH
回答by Renato Oliveira
I went to this topic because I was in need to make SVN 1.7 to work with subclipse.
我进入这个主题是因为我需要让 SVN 1.7 与 subclipse 一起工作。
For those with the same problem, the easiest way to fix it is to install Subversion and JavaHL from MacPorts.
对于那些有同样问题的人,最简单的修复方法是从 MacPorts 安装 Subversion 和 JavaHL。
The packages you need to install with macports are subversion and subversion-javahlbindings (check here), they are both 1.7.1.
你需要用 macports 安装的包是 subversion 和 subversion-javahlbindings(在这里查看),它们都是 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)
使用这些软件包,您可以使用 1.8.x 版的更新站点安装 subclipse。(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.
如果您没有安装 macports,请按照这些说明进行操作。我相信它对其他事情也很有用。您还需要从 AppStore 安装 XCode。
回答by vamsu
Installing the binaries from http://www.wandisco.com/subversion/download#osxfixed this issue for me.
从http://www.wandisco.com/subversion/download#osx安装二进制文件为我解决了这个问题。
回答by crysaz
This post resolved my problem: http://bridgetconsulting.com/?p=64Requires MacPorts
这篇文章解决了我的问题:http: //bridgetconsulting.com/?p=64 Requires MacPorts
Add to /opt/local/etc/macports.conf this line
将此行添加到 /opt/local/etc/macports.conf
universal_archs i386 x86_64
and run
并运行
sudo port install subversion-javahlbindings +no_bdb +universal
回答by Ryan
I installed subversion 1.7 and the java-hl bindings using homebrew by following the instructions here.
我按照此处的说明使用自制软件安装了 subversion 1.7 和 java-hl 绑定。
Specifically:
具体来说:
[sudo] brew install subversion --universal --java
Then linking the installed libraries in /Library/Java/Extensions so eclipse picked them up.
然后在 /Library/Java/Extensions 中链接已安装的库,以便 eclipse 选择它们。
/Library/Java/Extensions $ sudo ln -sf /usr/local/lib/libsvnjavahl-1.dylib
/Library/Java/Extensions $ sudo ln -sf /usr/local/lib/libsvnjavahl-1.jnilib
回答by apesa
You only installed the Java HL package. Uninstall JavaHL and install the SVN Kit. You can find options for connecting in Preferences -> Team...
您只安装了 Java HL 包。卸载 JavaHL 并安装 SVN Kit。您可以在“首选项”->“团队...”中找到连接选项