eclipse 如何在 Ubuntu 上升级 JavaHL?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8434449/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:45:17  来源:igfitidea点击:

How to upgrade JavaHL on Ubuntu?

eclipsesvnubuntusubclipsejavahl

提问by Dave L.

Environment

环境

  • Ubuntu 10.10
  • Eclipse Java EE Indigo Service Release 1
  • Subclipse 1.8.x
  • libsvn1 1.6.12
  • svn 1.7.x
  • Ubuntu 10.10
  • Eclipse Java EE Indigo 服务第 1 版
  • 子剪辑 1.8.x
  • libsvn1 1.6.12
  • SVN 1.7.x

Problem

问题

Subclipse 1.8.x requires JavaHL version 1.7.x. I need Subclipse 1.8.x in order to use svn 1.7.x.

Subclipse 1.8.x需要 JavaHL 版本 1.7.x。我需要 Subclipse 1.8.x 才能使用 svn 1.7.x。

Ubuntu 10.10 does not have subversion 1.7 packages or libsvn1 1.7 packages.

Ubuntu 10.10 没有 subversion 1.7 包或 libsvn1 1.7 包。

Question

Is there any way to upgrade the libsvn1 package on Ubuntu, possibly by configuring another package repository or installing the package directly? If the latter is possible, where can I find the libsvn1/JavaHL packages? Surely someone else must be trying to use svn 1.7 on this Ubuntu version right?

有没有办法在 Ubuntu 上升级 libsvn1 包,可能是通过配置另一个包存储库或直接安装包?如果后者是可能的,我在哪里可以找到 libsvn1/JavaHL 包?当然,其他人必须尝试在这个 Ubuntu 版本上使用 svn 1.7,对吗?

采纳答案by Mark Phippard

If you do not want to mess around with your Ubuntu packages while you wait for them to update to SVN 1.7.x, one thing you can do is install the CollabNet client RPM. This installs into a private namespace (/opt/CollabNet_Subversion) so it does not alter any of your Ubuntu packages. You can install the RPM by using the "alien" package. We have had Subclipse users confirm that this client works for them.

如果您不想在等待 Ubuntu 软件包更新到 SVN 1.7.x 时弄乱它们,您可以做的一件事是安装 CollabNet 客户端 RPM。这会安装到私有命名空间 (/opt/CollabNet_Subversion) 中,因此它不会更改您的任何 Ubuntu 软件包。您可以使用“alien”包安装 RPM。我们已经让 Subclipse 用户确认该客户端适用于他们。

http://www.open.collab.net/downloads/subversion/linux.html

http://www.open.collab.net/downloads/subversion/linux.html

回答by jlb

(Copied from another answer)

(从另一个答案复制)

Remove your existing libsvn-java:

删除现有的 libsvn-java:

sudo apt-get purge libsvn-java

Then, add the following software source and re-install:

然后,添加以下软件源并重新安装:

sudo add-apt-repository ppa:dominik-stadler/subversion-1.7
sudo apt-get update
sudo apt-get install libsvn-java

(found here)

(在这里找到)

Update: for Ubuntu 14 use the subversion 1.8 repo instead

更新:对于 Ubuntu 14,请改用 subversion 1.8 repo

sudo add-apt-repository ppa:dominik-stadler/subversion-1.8

(Thanks to @YetAnotherMatt's answer below)

(感谢@YetAnotherMatt下面回答

回答by Peter Kahn

I think the real problem is that the jni location changed in 14.04 from /usr/lib/jni to something like /usr/lib/x86_64-linux-gnu/jni

我认为真正的问题是 jni 位置在 14.04 中从 /usr/lib/jni 更改为类似 /usr/lib/x86_64-linux-gnu/jni

I recommend editing your eclipse ini's vmargs java.library.path setting thus

我建议编辑你的 eclipse ini 的 vmargs java.library.path 设置

  • ORIGINAL: -Djava.library.path=/usr/lib/jni
  • NEW: -Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
  • 原文:-Djava.library.path=/usr/lib/jni
  • 新:-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni

This setting determination from where eclipse expects to locate the library files

这个设置决定了 eclipse 期望在何处定位库文件

回答by YetAnotherMatt

@VishalKale, and anyone else trying to follow @jlb's instructions on more recent versions of Ubuntu, use the Subversion-1.8 repository instead:

@VishalKale 以及其他任何试图在更新的 Ubuntu 版本上遵循 @jlb 说明的人,请改用 Subversion-1.8 存储库:

sudo add-apt-repository ppa:dominik-stadler/subversion-1.8

For more details: Getting subclipse to work on Ubuntu 64 and Indigo - Incompatible JavaHL library loaded. 1.7.x or later required

有关更多详细信息:让 subclipse 在 Ubuntu 64 和 Indigo 上工作 - 加载了不兼容的 JavaHL 库。需要 1.7.x 或更高版本