mac os 下 MyEclipse 8.6.1 安装svn插件

来源:互联网 发布:知乎fbi气场修炼术 编辑:程序博客网 时间:2024/06/07 12:12

由于mac os用户相对于windows来说还是少之可怜,windows下的软件在mac os下虽然能找到相应的软件代替,但还是存在着滞后性,不能语windows同日而语。

 

基于UNIX的mac os是个很不错的操作系统,不论是从娱乐还是开发来讲。下面我来说说mac os下使用myeclipse,安装svn的过程。

 

在windows系统(不论哪个版本)下,安装svn都很方便,当我买了macbook,安装myeclipse是很容易的,但在网上没有找到相应的svn安装介绍文章,经过一段时间的寻找,终于让我找到了安装方法。

 

首先,要下载一个svn的客户端。下载地址为Subversion-1.6.15-10.6.x.dmg,下载后双击安装即可。关于这方面信息的介绍参照一下英文。(英文地址:http://subclipse.tigris.org/wiki/JavaHL)

 

The easiest thing to do is download and install the OSX package that is provided on openCollabNet. This installs Subversion, including the JavaHL library, into /opt/subversion. It then makes a symlink for the JavaHL library into /Library/Java/Extensions. This is a global location that the OSX JVM looks in when loading libraries via JNI. So basically, if you install this package, there is nothing else you need to do. It is OK to install this after you have installed Subclipse. These binaries are Universal including 32 and 64-bit variants which can be important if you use different JVM's.

?MacPorts also provides an easy Subversion and JavaHL package, however on Snow Leopard ?MacPorts is still compiling these packages as simple 32-bit binaries. If you use the default Snow Leopard JVM which is 64-bit you will get an error like this when JavaHL is loaded:

 

Failed to load JavaHL Library.These are the errors that were encountered:no libsvnjavahl-1 in java.library.pathno svnjavahl-1 in java.library.path/opt/local/lib/libsvnjavahl-1.0.0.0.dylib:  no suitable image found.  Did find:  /opt/local/lib/libsvnjavahl-1.0.0.0.dylib: mach-o, but wrong architecture

 

Note the error about wrong architecture. This is because the 64-bit JVM cannot load a 32-bit native library. The ?CollabNet binaries for OSX do not have this problem because they include both 32-bit and 64-bit versions.

从上面的英文我们可以看出,需要下载svn的客户端,而客户端由openCollabNet提供。废话少说,下载安装。

 

 

其次,给myeclipse安装svn插件,这个更容易了,参照关于eclipse的安装方法即可,不过myeclipse8.6.1安装方法与eclipse的安装方法有些不通。

上图说明

 

安装后svn插件,那么mac os下的myeclipse就可以使用svn了。

哈哈⋯⋯

 

补充说明,上面的安装svn的方式,可能会引起myeclipse某些插件不能使用,请按照下面的方式安装svn:

 

1、去svn网站下载svn的zip包;

2、将svn.zip包解压出来,将features和plugins两个文件夹解压到某一个目录下(例如,svnplugin)

3、在myeclipse下的dropin目录下建立svnplugin.link文件,文件内容制定svnplugin文件夹的绝对路径

4、删除myeclipse/confirgure目录下的***update文件夹

5、重启myeclipse

原创粉丝点击