如何在OS X上卸载Subversion [英] How do I uninstall subversion on OS X

查看:134
本文介绍了如何在OS X上卸载Subversion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在命令行上做了svn --version,它说是1.17.10.

I did svn --version on command line and it says it is 1.17.10.

我想完全卸载它,所以我可以重新安装1.16.12

I want to uninstall it completely, so I can re-install 1.16.12

我该如何在OS X中做到这一点?

How do I do that in OS X?

谢谢

推荐答案

正如Mike Christensen所说,要卸载它,您只需要删除二进制文件即可.运行which svn知道二进制文件的安装位置.

As said Mike Christensen, in order to uninstall it, you just need to delete the binary. Run which svn to know where your binary is installed.

要安装Subversion,您需要:

In order to install subversion, you need to:

  1. 下载它.
  2. 解压缩(tar xzf subversion-1.x.y.tar.gz).
  3. 编译(./configure && make).
  4. 安装(sudo make install).
  1. Download it.
  2. Uncompress it (tar xzf subversion-1.x.y.tar.gz).
  3. Compile it (./configure && make).
  4. Install it (sudo make install).

我很确定这会将它安装在/usr/local/bin中.因此,如果要svn调用刚安装的Subversion(而不是XCode内置的版本),则需要编辑$PATH,以便/usr/local/bin位于/usr/bin之前.在Mac OS X上,通过编辑文件/etc/paths完成路径.

I’m pretty sure this will install it in /usr/local/bin. So if you want svn to call the subversion you just installed (instead of the one built in XCode), you need to edit your $PATH so that /usr/local/bin is before /usr/bin. On Mac OS X, editing the path is done by editing the file /etc/paths.

请注意,步骤3和4需要编译器和make.在Mac OS X上获取这些代码的最简单方法是安装XCode.

Note that steps 3 and 4 requires a compiler and make. The easiest way to get those on Mac OS X is to install XCode.

这篇关于如何在OS X上卸载Subversion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆