Hey, Mac outfit SVN went a lot of detours. Just started using the command to check SVN--version, found that the system has been installed with the 1.6 version of Subversion, the version is too low, then start to upgrade to the final version of 1.8.8. After the upgrade is successful, use the command svn co http://www.geekso.com/svn download my SVN server code above, the hint does not support HTTP, the cup is from here, and then the Internet to check, someone said to install neon plug-ins, then install Neon plug-in bar, According to the Neon installation instructions document to install SCons, installation scons is not to report wrong, according to the error description did not find a solution, this road does not go through. Back to see what improvements were made to the Subversion 1.8.8 version, the update records said that the neon was abandoned and replaced by Serf. After loading serf finally resolved subversion does not support the issue of HTTP.
Start Zendstudio Install the SVN plugin (how to install this http://www.geekso.com/zendstudioquestion/#9) Select Zend Studio menu after loading->preferences- >TEAM->SVN Direct eject did not find the Javahl plugin. The subversion official has explained how the Mac installs Javahl, see this explanation I found in front of me to upgrade SVN and Ben superfluous.
Let's start with the straight road:
1. Installation homebrew, installation instructions: http://brew.sh/index_zh-cn.html
2. After the installation is complete, enter the brew update update homebrew
3. Enter the Brew install--universal--java Subversion (This step is to install the latest subversion and Javahl packs, so I didn't need to upgrade the SVN operation earlier)
4. After the installation is complete, it will prompt you: You can need to link the Java bindings ..., the interface will prompt you enter the following two commands, and then execute the two sudo command below:
Terminal input: sudo mkdir-p/library/java/extensions
sudo ln-s/usr/local/homebrew/lib/libsvnjavahl-1.dylib/library/java/extensions/libsvnjavahl-1.dylib
5. Installation Complete
6. Restart Zendstudio, select Zend Studio menu->preferences->TEAM->SVN will not prompt Javahl does not exist the hint.
Possible errors during installation:
1. You will be prompted Warning:java_home is set. Try unsetting It if JNI headers cannot be found.
Terminal input: Export java_home= '/usr/libexec/java_home '
2. Prompts autoconf to install error
Install autoconf yourself manually and execute brew link autoconf after the installation completes. If you have error prompts to modify file permissions or delete files as indicated above.
I also put the manual installation subversion posted
This is the way to upgrade before
1.Download the SVN Source
The code is as follows |
|
CD ~/downloads/ Curl-o subversion-1.8.8.tar.gz http://archive.apache.org/dist/subversion/subversion-1.8.8.tar.gz TAR-XVF subversion-1.8.8.tar.gz |
2.Build and Install SVN
To communicate with SVN through the HTTPS protocol, after 1.8, need Ann? Serf Kit. And this kit needs xctoolchain. Link needs to be established.
The code is as follows |
|
sudo ln-s/applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain//Applications/Xcode.app /contents/developer/toolchains/osx10.9.xctoolchain |
3. Obtain and Ann? Serf
The code is as follows |
|
CD ~/downloads/subversion-1.8.8 SH get-deps.sh serf CD serf/ ./configure Make sudo make install |
4. Install SVN
The code is as follows |
|
CD ~/downloads/subversion-1.8.8 ./configure--prefix=/usr/local--with-serf=/usr/local/serf Make sudo make install |
The Subversion 1.8.8 has been installed since path has not been set, and the version that appears in the terminal input SVN--version is still 1.6.x, so you can temporarily type in the current terminal
Export Path=/usr/local/bin: $PATH to set up the SVN version that you currently need to use.
A simple solution was found later.
Since the 10.5 version of the application of Mac OS,SVN has always been the default installed software.
If you have a xcode installed, just do it in code > Preferences > Download > Command line Tools > Install, Fast, basic 1 minutes. This command line tools contains the latest SVN. Then if you do not install Xcode, it will be very painful, the use of this approach will be very painful, because Xcode close to 1.5GB! Especially for friends who just need svn and don't use Xcode.
Luckily, you can install SVN without installing Xcode, just download a 116MB https://developer.apple.com/downloads/index.action on the Apple developer website Command line Tools (OS X mountain Lion) to install the package independently. Of course you need an Apple Developer ID (which can be registered for free).
After installation, you can apply terminal to confirm your SVN version: SVN--version