Install and upgrade the mac system and SVN client used by xcode

Source: Internet
Author: User
Tags svn client

The current SVN version has been upgraded to 1.8.x, but the SVN Client Version that comes with the mac system and that used by xcode is not upgraded, or 1.6.x. To hide the directory. svn only exists under the root directory, you must upgrade it to version 1.7.x at least.

This method only supports svn1.7.x and does not support version 1.8 upgrade.

My mac environment: mac 10.8.4 xcode 4.6.3

The machine is mac mini MD388 (for more information about the model, see here)

Environment requirements: Install the command line tool in xcode. As shown in:

Upgrade principle:

1. Download the SVN client of the latest version.

2. Compile and install the SVN client in the mac Environment

3. Copy the latest SVN-related files to the xcode directory.

Procedure:

1, download the latest version of SVN client: it is recommended to download the http://apache.mirrors.tds.net/subversion/ directly to the official website can see the latest version

2. decompress the downloaded file and the corresponding directory is automatically generated, such as subversion-1.7.10.

3. Compile and install SVN and enter the following command in the terminal: (if you are lazy, you only need to modify the name of the first directory in the following line and paste it into the terminal to run it,Enter the password of the mac system administrator.)

Cd ~ /Downloads/subversion-1.7.10 # enter the version number after the subdirectory to display the current version
# Start to install neon, which can support HTTPS connections
Sh get-deps.sh neon
Cd neon/
./Configure -- with-ssl
Make
Sudo make install # enter the administrator password here
Cd ..
# Install HTTP-supported connections using the -- with-neon identifier
./Configure -- prefix =/usr/local -- with-neon
Make
Sudo make install

4. verify whether the installation is successful

Input svn -- version on the terminal

Note: handles http https is not supported.

If it is incorrect, add the PATH settings of the system: Add or edit ~ /. Add a line to the bash_profile file: export PATH =/usr/local/bin: $ PATH

5. Update the SVN client used in xcode4.x.

Sudo-s # enter the Administrator Password

# The following command can be directly copied to the terminal for execution
Cd/Applications/Xcode. app/Contents/Developer/usr/bin/# enter the subdirectory where xcode stores svn commands.
Mkdir bup # create a backup directory
Mv svn * bup/# Move the old svn-related files to the backup directory
Ln-s/usr/local/bin/svn *./# copy the new SVN file to the current directory.

 

The above has been successfully upgraded from 1.6.x to 1.7.x.

 

Reference link:

Upgrade svn Client Version http://jason.pureconcepts.net/2012/10/updating-svn-mac-os-x/ for mac systems

Upgrade the svn Client Version http://tgoode.com/2012/03/31/use-svn-1-7-in-xcode-4-3/ for xcode4.x

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.