Install SVN plug-in eclipse on Mac

Source: Internet
Author: User
Tags install homebrew tar xz

The most commonly used SVN plug-in eclipse is subclipse, first to the subclipse Official Website: http://subclipse.tigris.org to download this plug-in.
For example, click "Download and Install" to go To the Download page. Select the version to be installed. for example, click Links for 1.8.x Release. Next, you can install subclipse in two ways. 1, 1, copy Eclipse update site URL: link behind: http://subclipse.tigris.org/update_1.8.x 2, open eclipse, click Help-Install New SoftWare, open the window: 3, click add button. 4. In the name column, enter the plug-in name: subclipse; in the location column, enter the copied link: http://subclipse.tigris.org/update_1.8.x 5, click OK. 6. For example, select Subclipse and remove the check box before the "Contact all update site..." option, and then click "next" until the online installation is complete. If a prompt box appears in the middle, select "OK. After the installation is complete, you must restart eclipse. 2. 1. Click the link behind Zipped downloads to download the plug-in to your local device. 2. Same as above 2 3. Same as above 3 4. Enter subclipse in the name column, click Archive, and select the plug-in package you just downloaded. 5. above 5, above 6, after restarting eclipse, select Window-Show View-Other to expand SVN, double-click to open the "SVN repository" View and right-click the blank area, select "new"> "resource Library location", enter the SVN access address in the URL column, and click "finish". An error is prompted: Failed to load JavaHL Library.
These are the errors that were encountered:
No libsvnjavahl-1 in java. library. path
No svnjavahl-1 in java. library. path
No svnjavahl in java. library. pathjava. library. path =. :/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java indicates that JavaHL is missing and needs to be installed manually. Click Eclipse-Preferences and expand Team-SVN. The client under the SVN interface displays JavaHL (JNI) Not Available, which means JavaHL is unavailable. Of course, you can also click the up and down arrow on the right to select SVNKit... as a client, subclipse can also be used normally. However, JavaHL is recommended as the client. The stability and speed are much better than SVNKit. Unknown errors may occur when SVNKit is used, damage your project data. (JavaHL uses jni to call the local SVN library, so it is fast, stable, and reliable.) view the Wiki document of JavaHL: http://subclipse.tigris.org/wiki/javahlmentioned iN OS X on the bottom: to install JavaHL, you need to use MacPorts or HomeBrew. (Description: MacPorts and HomeBrew are the Package Manager in Mac OS X. They are similar to apt-get and Red Hat yum in Ubuntu and are used to install, uninstall, and update software) next we use MacPorts to install JavaHL, go to the MacPorts download page: a paragraph in the http://www.macports.org/install.php, to install and run MacPorts, you must install Xcode and Command Line Tools, then go to the Mac App Store to download and install Xcode, free of charge, 1.65 GB. After Xcode is installed, open it and click Xcode-Preferences to switch to the Downloads view. Click the Install button next to Command Line Tools to Install Xcode. After Xcode and Command Line Tools are installed, go back to the MacPorts download page and click the underlined system version to download them. My system version is Mountain Lion, so click "Mountain Lion" to download it. After the download, click Install directly. The installation process may be very slow. At that time, I thought that the installation could not be completed and I planned to restart the computer. If your installation process persists, restart your computer and try again. After MacPorts is installed, open the terminal and follow the instructions in the JavaHL WIKI document. Enter sudo port install subversion-javahlbindings + no_bdb + universal and press Enter. An error occurs and the installation fails! This is true after several consecutive attempts. Many people on the Internet see that MacPorts fail to install JavaHL. Some people say that HomeBrew can be used successfully, so I used HomeBrew to install JavaHL again. Since MacPorts and HomeBrew are not compatible, uninstall MacPorts first. Enter sudo port-f uninstall installedsudo rm-rf \/opt/local \/Applications/DarwinPorts \/Applications/MacPorts \/Library/LaunchDaemons/org in the terminal. macports. * \/Library/Receipts/DarwinPorts *. pkg \/Library/Receipts/MacPorts *. pkg \/Library/StartupItems/DarwinPortsStartup \/Library/Tcl/darwinports1.0 \/Library/Tcl/macports1.0 \~ /. Macports MacPorts uninstall deletion is complete, and then open HomeBrew home page: http://brew.sh drag the page to the bottom, see: The above white line of command is used to install HomeBrew, you can see that it is a Ruby command, it indicates that HomeBrew is implemented using Ruby. Because Ruby is installed on Mac OS X by default, you can directly execute this command. You can enter ruby-v on the terminal to view the Ruby version. Enter: ruby-e "$ (curl-fsSL https://raw.github.com/mxcl/homebrew/go)" in the terminal and press Enter. Next you will start installing HomeBrew online. The installation may take a long time depending on the network conditions. Homebrew is installed in usr/local by default, and bin is its main directory. The path of the bin directory has been added to path. You can directly execute the brew command in any directory. Packages installed through brew are stored in the Cellar directory under use/local. Of course, to make the directory structure clearer, we can create the homebrew directory under/usr/local and install homebrew under/usr/local/homebrew. The specific operation command is, terminal input: mkdir homebrew & curl-L https://github.com/mxcl/homebrew/tarball/master | tar xz -- strip 1-C homebrew after installation is complete, need to update homebrew, terminal input: brew update and then manually add/usr/local/homebrew/bin to PATH. After the installation of Home Brew is successful, start to install javaHL. Enter the command brew install -- universal -- java subversion in the javaHL Wiki to install javaHL, after the installation is complete, it will prompt You: You may be need to link the Java bindings ......., Then run the following two sudo commands: terminal input: sudo mkdir-p/Library/Java/Extensions sudo ln-s/usr/local/homebrew/lib/libsvnjavahl-1.dylib/Library/Java/Extensions/libsvnjavahl-1.dylib can be done! The last line displays the JavaHL version. For example, the following figure shows me: Version: 1.8.0. When we open eclipse and create a resource library, an error occurs: Incompatible JavaHL library loaded. subversion 1.7.x required. this error indicates that the mismatched JavaHL version is loaded. The required version is 1.7.x. The installed JavaHL version is 1.8.0. Open the JavaHL Wiki document: the table in the http://subclipse.tigris.org/wiki/JavaHL identifies the ing between subclipse and JavaHL version. The subclipse version installed in eclipse is 1.8.22, and the corresponding JavaHL version is 1.7.x. Therefore, a message indicating version mismatch is displayed. For convenience, we unmount subclipse1.8.22 and replace it with 1.10.x. Steps for uninstalling subclipse: Open eclipse, click Eclipse-About Eclipse, click the Installation Details button, select the options related to subclipse, and click the Uninstall button to unmount it. After the installation is complete, download and install subclipse 1.10.1 again following the steps mentioned above, and then restart eclipse to create a normal resource library location.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.