问题:
在MAC OSX 10.7下安装了ECLIPSE,再安装subclipse,安装完成后,总是提示找不到JavaHL,根据提示安装了
Subversion 1.6.17 Binaries for Lion (Mac OS X 10.7)
仍然不行,查找网络资料,安装macports,执行sudo port install subversion-javahlbindings的命令,又出现错误Error: Port install not found,可谓步履维艰。不过根据摸索,终于解决了问题,下面按步骤说明,一是便于自己将来查找使用,二是方便其他遇到此类问题的朋友。
步骤:
(1)安装subclipse
http://subclipse.tigris.org/update_1.8.x
(2)安装Subversion
http://www.collab.net/downloads/subversion,选择“Community Binaries”;
(3)安装macports
http://www.macports.org/
安装完成macports后,如果执行sudo port install xxx出现Port install not found错误,执行如下命令:
sudo port -v selfupdate
(4)安装javahl
sudo port install subversion-javahlbindings
在安装完MacPorts以后,在终端下执行下面的命令sudo port install subversion-javahlbindings,安装javahl
到这一步的时候出现问题
Error:
Error: No Xcode installation was found.
Error: Please install Xcode and/or run xcode-select to specify its location.
Error:
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
---> Computing dependencies for subversion-javahlbindingsError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
此问题解决方法:
打开Xcode–》偏好设置–》download–》install command line tools
以上步骤完成之后,即可重新启动eclipse,此时subclipse即可使用了。