简体   繁体   English

如何在Ubuntu上升级JavaHL?

[英]How to upgrade JavaHL on Ubuntu?

Environment 环境

  • Ubuntu 10.10 Ubuntu 10.10
  • Eclipse Java EE Indigo Service Release 1 Eclipse Java EE Indigo Service Release 1
  • Subclipse 1.8.x Subclipse 1.8.x
  • libsvn1 1.6.12 libsvn1 1.6.12
  • svn 1.7.x svn 1.7.x

Problem 问题

Subclipse 1.8.x requires JavaHL version 1.7.x . Subclipse 1.8.x 需要JavaHL 1.7.x版 I need Subclipse 1.8.x in order to use svn 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? 有没有办法升级Ubuntu上的libsvn1包,可能是通过配置另一个包存储库或直接安装包? If the latter is possible, where can I find the libsvn1/JavaHL packages? 如果后者是可能的,我在哪里可以找到libsvn1 / JavaHL包? Surely someone else must be trying to use svn 1.7 on this Ubuntu version right? 当然其他人必须尝试在这个Ubuntu版本上使用svn 1.7吗?

(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的回答

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. 如果你不想在等待它们更新到SVN 1.7.x时乱用你的Ubuntu软件包,你可以做的一件事是安装CollabNet客户端RPM。 This installs into a private namespace (/opt/CollabNet_Subversion) so it does not alter any of your Ubuntu packages. 这将安装到私有命名空间(/ opt / CollabNet_Subversion),因此它不会改变任何Ubuntu包。 You can install the RPM by using the "alien" package. 您可以使用“alien”软件包安装RPM。 We have had Subclipse users confirm that this client works for them. 我们让Subclipse用户确认此客户端适用于他们。

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

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 ORIGINAL:-Djava.library.path = / usr / lib / jni
  • NEW: -Djava.library.path=/usr/lib/x86_64-linux-gnu/jni 新:-Djava.library.path = / usr / lib / x86_64-linux-gnu / jni

This setting determination from where eclipse expects to locate the library files 此设置确定eclipse期望找到库文件的位置

@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. 有关更多详细信息: 使用subclipse在Ubuntu 64和Indigo上工作 - 加载了不兼容的JavaHL库。 1.7.x or later required 需要1.7.x或更高版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM