六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 33|回复: 0

Upgrade Subversion on Mac OS X

[复制链接]

升级  94.67%

58

主题

58

主题

58

主题

秀才

Rank: 2

积分
192
 楼主| 发表于 2013-1-15 02:46:35 | 显示全部楼层 |阅读模式
<div class="content clear-block">If you get the following error

svn: This client is too old to work with working copy '.';
please get a newer Subversion client

... or you just want to update your subversion client (command line), try the following:
<ol>In Terminal, type "svn --version" to find out what version you currently have
Go to http://www.open.collab.net/downloads/community and download the latest client for OS X and install it. This will install the new svn into /opt/subversion/bin
Got to your terminal and check your $PATH by typing "echo $PATH".If you don't see /opt/subversion/bin in there, make sure you add it bytyping export PATH=/opt/subversion/bin:$PATH. If it DOES exist andappears AFTER /usr/bin, then you may need to remove an older copy ofsvn that came installed on OS X. To do so, go to /usr/bin and removeall files starting with svn. This isn't an exact science but it shoulddo the trick.
To be able to call the Subversion commands from every directory, youmust add it to your path in the ".profile" or .bash_profile. If you don't know what that means, don'tworry. Just follow the instructions.
Open the Terminal application. It can be found in the/Applications/Utilities folder. Whenever you see below a line startingwith a dollar sign, you should type the text after the dollar sign inyour terminal and hit return.
Start by creating a new text file called '.bash_profile' in "~/" directory, i.e. with the command line text editor pico:
<div class="code">$ handy .profile
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表