Ubuntu 上的 Subversion v1.7 问题(使用 Subclipse 和 JavaHL)
我在 Ubuntu 10 上使用 subversion 和 Eclipse。由于当我使用从 sudo apt-get install subversion
获得的 subversion(版本 1.6)时,Eclipse 中出现了投诉,所以:
- 我尝试安装版本1.7 是我自己的,并计划只在命令行中使用它。但它抱怨
无法识别“https://...”的 URL 方案
。 - 当我尝试在 Eclipse 中使用 subclipse 1.6.x 时,它提醒我必须升级其版本才能与 subversion 1.7 兼容。
- 将 subclipse 升级到 1.8.x 后,我注意到该版本没有可用的支持 JavaHL。
- 我打算卸载subversion,但发现源代码中没有
make uninstall
。 - 我尝试再次使用 sudo apt-get install subversion,但是当我输入 svn 时它始终是 v1.7。
现在,我真的想从我的系统中删除 subversion v1.7,并暂时使用 v1.6。
我检查了几个问答,例如 如何在 Ubuntu 上升级 JavaHL? 和 Subclipse 和 JavaHL 安装头痛。但他们似乎无法解决我的问题。你有人能帮忙吗?先感谢您。
I am using subversion and Eclipse on Ubuntu 10. Since there were complaints in Eclipse when I was using the subversion gotten from sudo apt-get install subversion
, which is version 1.6, so:
- I tried to install version 1.7 on my own, and planned to just use it in command line. But it complained that
Unrecognized URL scheme for 'https://...
. - When I tried to use subclipse 1.6.x in Eclipse, it reminded me that I have to upgrade its version to be compatible with subversion 1.7.
- After I upgraded subclipse to 1.8.x, I noticed there was no supportive JavaHL available for this version.
- I intended to un-install subversion, but found there was no
make uninstall
in the source code. - I tried to use
sudo apt-get install subversion
again, but when I typedsvn
it was always v1.7.
For now, I really want to remove subversion v1.7 from my system, and just stick with v1.6 for a while.
I've checked several Q&A's, such as How to upgrade JavaHL on Ubuntu? and Subclipse and JavaHL installation headache. But it seems they could not solve my problem. Could you anyone help one this? Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题 1。这意味着您在运行 configure 时要么没有找到 Neon(它用于 http 通信的库),要么找到的 Neon 不是使用 SSL 支持构建的(通常通过 OpenSSL)。
有针对 Ubuntu 的预构建包。为什么不使用其中之一呢?
http://subversion.apache.org/packages.html#ubuntu
问题 2/3 。请参阅 - http://subclipse.tigris.org/wiki/JavaHL
请注意,当您构建 Subversion 时您需要运行 make javahl 和 make install-javahl
问题 4。无法真正帮助您。每当我构建某些东西时,我都会使用 --prefix= 选项,以便我可以控制它安装到的文件夹。然后您只需 rm 该文件夹即可。
问题 5. 您是否先尝试卸载该软件包?也许Ubuntu只是认为它已经安装了。我怀疑如果您用从不同版本构建的自己的二进制文件替换二进制文件,它会知道。
Question 1. This means you when you ran configure it either did not find Neon (which is the library it uses for http communications) or the Neon it found was not built with SSL support (typically via OpenSSL).
There are pre-built packages for Ubuntu. Why not use one of those?
http://subversion.apache.org/packages.html#ubuntu
Questions 2/3. See - http://subclipse.tigris.org/wiki/JavaHL
Note that when you built Subversion you would need to run make javahl and make install-javahl
Question 4. Can't really help you. Whenever I build something, I use the --prefix= option so that I can control the folder it installs to. You can then just rm the folder.
Question 5. Did you try uninstalling the package first? Maybe Ubuntu just thinks it is installed already. I doubt it would know if you replace the binaries with your own that were built from a different version.
我修复了它,但不是以最好的方式。
问题简介:我使用的是 Ubuntu Desktop 12.04 (amd64)。我安装了多个 Eclipse(v4.1、v4.2、v4.3)。还在用户主目录上手动安装了几个颠覆版本(v1.6、v1.7、v1.8)。我想尝试 subversion-v1.8.x 并通过应用程序 卸载 subversion-v1.6.x突触。但尽管如此,这次行动顺利完成,颠覆仍然存在。而且它应该是 svn-v1.6.x,我看到的是 svn-v1.7。所以我不小心把 subversion-v1.7.13 作为 root 用户安装到了操作系统中。我相信,这与您所遇到的问题完全相同。对此我还没有找到一个干净的解决方案:“make uninstall”。
解决方法非常简单:
(1) 编译源代码并安装到您的主目录中。
为此,我强烈推荐以下关于 subversion-v1.8.5 的文章。这是我编译和安装 javahl 所需的指南。它需要一些您可能不知道的额外步骤。记住使用参数“--prefix”来定位安装文件夹也非常重要。
(2) 使用创建的目录“lib”的绝对路径配置 eclipse.ini
在我的文件中,我添加了一行带有属性“java.library.path”的行。
这对我来说解决了问题,因为我忽略了安装到操作系统中的颠覆。您还应该考虑修复“.profile”文件以重建环境变量 $PATH,以便在操作系统提供的 $PATH 之前设置“./bin/subversion-v1.8.5/bin”目录。
本质上,解决方案是覆盖操作系统软件并在主目录中使用您自己的版本。这可能也适用于任何可用的 Ubuntu 和 Eclipse 版本。
I fixed it but not in the best possible way.
Introduction to the problem: I work with an Ubuntu Desktop 12.04 (amd64). I have several Eclipse installations (v4.1, v4.2, v4.3). Also got several subversion manually installed on user-home directories (v1.6, v1.7, v1.8). I wished to try subversion-v1.8.x and uninstalled subversion-v1.6.x via app Synaptic. But nonetheless this action finishes OK, subversion still persists. Moreover it should be svn-v1.6.x and I was seeing svn-v1.7. So I messed up installing by accident subversion-v1.7.13 as user root into the operating system. This is, I believe, exactly the same problem you are suffering. To this I've not found a clean solution: “make uninstall”.
The workaround is extremely easy:
(1) Compile the source code and install into your home dir.
To this I strongly recommend the following article on subversion-v1.8.5. It is the guide I needed to compile and install javahl. It requires some extra steps your might not be aware of. It is also very important to remember using the parameter “--prefix" to target the installation folder.
(2) Configure eclipse.ini with an absolute path to the created directory “lib”
To my file I added a single line with the property “java.library.path”.
This for me fixed the problem because I ignore the subversion that is installed into the operating system. You should also consider to fix your “.profile” file to rebuild your environment variable $PATH in order to set the “./bin/subversion-v1.8.5/bin” directory before $PATH provided by the operating system.
In essence the solution is overwrite operating system software and use your own version in your home directory. This might apply as well for any Ubuntu and Eclipse versions available.