Mac OS Lion 上的 Eclipse 的 svn

发布于 2024-12-15 03:12:34 字数 1003 浏览 2 评论 0 原文

我需要在 Mac Lion 上将 Subversion 与 Eclipse 结合使用。我遇到如下问题

Mac OS Lion 中的 Subclipse 显示“无法加载默认 SVN 客户端”错误

在我的上下文中:

I need to use Subversion with Eclipse on Mac Lion. I encounter problem as below

I saw: Subclipse in Mac OS Lion shows "Unable to load default SVN client" error

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.x
    It 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

你在看孤独的风景 2024-12-22 03:12:34

问题是您需要适合您使用的 Subclipse 版本的本机 Subversion 库。此页面包含版本信息和图表:

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

二进制文件CollabNet 网站上的 SVN 1.6 仍然适用,因此您要么需要获取 SVN 1.7 二进制文件(MacPorts 和 Homebrew 是获取它的好地方),要么需要使用 Subclipse 1.6.x。

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.

塔塔猫 2024-12-22 03:12:34

请按照以下步骤使其工作:

  1. 通过更新网址安装 subclipse: http://subclipse.tigris .org/update_1.8.x
  2. 使用此处的二进制文件安装 subversion:http://www.ubersvn.com/download(向下滚动到“由 WANdisco 认证的命令行客户端 1.6.18 和 1.7.6”部分,因为这就是您所需要的)

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)
情愿 2024-12-22 03:12:34

我在此线程中找到了一个解决方案(从 WanDisco 而不是 CollabNet 下载): Subclipse in Mac OS Lion 显示“无法加载默认 SVN 客户端”错误

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

小鸟爱天空丶 2024-12-22 03:12:34

我进入这个主题是因为我需要使 SVN 1.7 能够与 subclipse 一起使用。

对于遇到同样问题的人,最简单的解决方法是从 MacPorts 安装 Subversion 和 JavaHL。

您需要使用 macports 安装的软件包是 subversion 和 subversion-javahlbindings (检查此处),它们都是1.7.1。

通过这些软件包,您可以使用版本 1.8.x 的更新站点安装 subclipse。 (http://subclipse.tigris.org/update_1.8.x)

如果您没有安装 macports,请按照 这些说明。我相信它对于其他事情也很有用。您还需要从 AppStore 安装 XCode。

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.

别低头,皇冠会掉 2024-12-22 03:12:34

http://www.wandisco.com/subversion/download#osx 安装二进制文件为我解决了这个问题。

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

日记撕了你也走了 2024-12-22 03:12:34

如果使用自制软件的人想要 SVN 版本 1.6 支持(正如我由于与一些旧服务器交互而所做的那样),我是如何让它工作的:

通过自制软件安装 SVN 1.6:

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

确保 /usr/local/bin< /code> 在 PATH 中位于 /usr/bin 之前,因此运行的是 homebrew 的 SVN 而不是 OS X 的。

如果使用 Eclipse:

请确保安装 Subclipse 1.6(例如使用 1.6 更新站点)而不是最新的。

如果您按照自制程序公式说明将 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

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

无声静候 2024-12-22 03:12:34

这篇文章解决了我的问题:http://bridgetconsulting.com/?p=64 需要 MacPorts

添加到/opt/local/etc/macports.conf 这一行

universal_archs         i386 x86_64

并运行

sudo port install subversion-javahlbindings +no_bdb +universal

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
或十年 2024-12-22 03:12:34

我按照说明使用 homebrew 安装了 subversion 1.7 和 java-hl 绑定 此处

具体来说:

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

然后链接 /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

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
隔纱相望 2024-12-22 03:12:34

您仅安装了 Java HL 包。卸载 JavaHL 并安装 SVN 套件。您可以在“首选项”->“连接”中找到连接选项。团队...

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文