关闭

mac下安装eclipse的svn插件

标签: mac svn插件 eclipse sv
766人阅读 评论(0) 收藏 举报
分类:

折腾了,很久网上各种教程,总是失败,纠结
参考文献:
http://subclipse.tigris.org/wiki/JavaHL

subclipse1.10.9版本 对应的使用的 JavaHL 为1.8版本

首先要阐明几个坑关于javaHL及其安装的

1,版本不对称 ,

 这里我使用的是  subclipse1.10.9版本 对应的使用的 JavaHL 为1.8版本

2、安装javahL使用工具的坑,Homebrew和macports

两者只能存在其一,如果存在一个,必须卸载一个

具体卸载方法

homwbrew卸载。官方也有文档

cd `brew --prefix`
rm -rf Cellar
brew prune
rm `git ls-files`
rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions
rm -rf .git
rm -rf ~/Library/Caches/Homebrew
macports卸载,官方文档地址:http://guide.macports.org/#installing.macports.uninstalling

         sudo port -fp uninstall installed
<span style="white-space:pre">	</span> sudo rm -rf \
        /opt/local \
        /Applications/DarwinPorts \
        /Applications/MacPorts \
        /Library/LaunchDaemons/org.macports.* \
        /Library/Receipts/DarwinPorts*.pkg \
        /Library/Receipts/MacPorts*.pkg \
        /Library/StartupItems/DarwinPortsStartup \
        /Library/Tcl/darwinports1.0 \
        /Library/Tcl/macports1.0 \
        ~/.macports

3,中间还有其他问题,suitable jdk等等,都不需要动摇,只需要把之前卸载,基本上都是版本,或者工具问题。

4、使用macport安装javaHl之前,一定要先更新一下macports,否则无法用,更新命令


sudo port -v selfupdate



下面进入正式安装步骤

1,安装eclipse svn1.10.9插件

2、安装homebrew或者macports

3、下面分别使用macports 和homebrew 安装JavaHL

3.1.1 先更新 macports

sudo port -v selfupdate
3.1.2 安装javaHL

sudo port install subversion-javahlbindings +no_bdb +universal



3 、2使用homebrew安装javaHL

brew install --universal --java subversion <span style="font-family: Arial, Helvetica, sans-serif;">执</span>
执行结果如下:
Warning: subversion: --java was deprecated; using --with-java instead!
==> Downloading https://www.apache.org/dyn/closer.cgi?path=subversion/subversion
Already downloaded: /Library/Caches/Homebrew/subversion-1.8.13.tar.bz2
==> Patching
patching file configure
Hunk #1 succeeded at 25386 (offset 20 lines).
patching file subversion/bindings/swig/perl/native/Makefile.PL.in
patching file build/get-py-info.py
==> Downloading https://serf.googlecode.com/svn/src_releases/serf-1.3.8.tar.bz2
Already downloaded: /Library/Caches/Homebrew/subversion--serf-1.3.8.tar.bz2
==> /usr/local/opt/scons/bin/scons PREFIX=/usr/local/Cellar/subversion/1.8.13/li
==> /usr/local/opt/scons/bin/scons install
==> ./configure --prefix=/usr/local/Cellar/subversion/1.8.13 --with-zlib=/usr --
==> make
==> make install
==> make tools
==> make install-tools
==> make javahl
==> make install-javahl
==> Caveats
svntools have been installed to:
  /usr/local/opt/subversion/libexec

You may need to link the Java bindings into the Java Extensions folder:
  sudo mkdir -p /Library/Java/Extensions
  sudo ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions/libsvnjavahl-1.dylib


Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary

再执行如下命令更具上一个命令提示:

sudo mkdir -p /Library/Java/Extensions
  sudo ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions/libsvnjavahl-1.dylib


0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:38507次
    • 积分:883
    • 等级:
    • 排名:千里之外
    • 原创:49篇
    • 转载:15篇
    • 译文:0篇
    • 评论:3条