`

Upgrade Subversion on Mac OS X

    博客分类:
  • Mac
阅读更多

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:

  1. In Terminal, type "svn --version" to find out what version you currently have
  2. 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
  3. 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 by typing export PATH=/opt/subversion/bin:$PATH. If it DOES exist and appears AFTER /usr/bin, then you may need to remove an older copy of svn that came installed on OS X. To do so, go to /usr/bin and remove all files starting with svn. This isn't an exact science but it should do the trick.
  4. To be able to call the Subversion commands from every directory, you must add it to your path in the ".profile" or .bash_profile. If you don't know what that means, don't worry. Just follow the instructions.

    Open the Terminal application. It can be found in the /Applications/Utilities folder. Whenever you see below a line starting with a dollar sign, you should type the text after the dollar sign in your 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:

    $ handy .profile

    Add the following line to the .profile file:

    export PATH=/opt/subversion/bin/:$PATH

    Now hit Control-X, then confirm saving the file with 'y', followed by return.

    You have just added Subversions's location to your path. Let Terminal read this file to know the path has changed (there's an empty space between the dots):

    $ . .profile or . ./.profile*
    (Step 4 referent from: http://www.rubyrobot.org/tutorial/subversion-with-mac-os-x)
  5. Type "svn --version". You should see that you have the newest version installed!

NOTE: If /opt/subversion/bin already exists, it will be backed up to /opt/subversion_backup.MMDDYYHHMMSSS. See the readme for more information.

*See http://www.tech-recipes.com/rx/2621/os_x_change_path_environment_variable/ for a great explanation of this

 

Quote from : http://www.redfinsolutions.com/redfin-blog/update-subversion-mac-os-x

分享到:
评论
2 楼 handy.wang 2009-12-19  
dancyd 写道
good, thanks,
btw: needn't delete original svn files in /usr/bin, just add "/opt/subversion/bin" in $PATH of .bash_profile.

and type "source ~/.bash_profile".


However, The value "/opt/subversion/bin" must be before value "/usr/bin" in the $PATH of .bash_profile.
1 楼 dancyd 2009-12-18  
good, thanks,
btw: needn't delete original svn files in /usr/bin, just add "/opt/subversion/bin" in $PATH of .bash_profile.

and type "source ~/.bash_profile".

相关推荐

    unlocker208 —— VMware 安装 MacOS的必备补丁

    On Mac OS X you will need to be either root or use sudo to run the scripts. This is really only needed if you want to use client versions of Mac OS X. You may need to ensure the OS X scripts have ...

    Homebrew Mac OS X 的包管理器 v4.2.10.zip

    Homebrew 是Mac OS X系统中的一个非常重要的包管理器,它允许用户轻松地安装、管理和升级各种开源软件。这个压缩包“Homebrew Mac OS X 的包管理器 v4.2.10.zip”包含了Homebrew的特定版本4.2.10的源代码和其他相关...

    vmware unlocker 2.0.6最新版(vm虚拟机破解安装Mac OS)

    On Mac OS X you will need to be either root or use sudo to run the scripts. This is really only needed if you want to use client versions of Mac OS X. You may need to ensure the OS X scripts have ...

    X-Cart.Gold.Upgrade.v3.5.x-3.5.6.PHP

    "X-Cart.Gold.Upgrade.v3.5.x-3.5.6.PHP"是用于将现有X-Cart Gold系统从3.5.x版本升级到3.5.6版本的专用脚本。这个脚本包含了从旧版本到新版本所需的所有更改和更新,确保数据的完整性和系统的稳定性。升级过程旨在...

    HPE 3PAR OS Upgrade Preparation Guide

    ### HPE 3PAR OS升级准备指南知识点解析 #### 概述 HPE 3PAR OS 升级准备指南旨在为HPE客户在进行3PAR操作系统升级时提供一个全面的规划工具。该文档包含了HPE对于3PAR OS升级过程中的推荐步骤,并且将整个文档分为...

    ansible-mikrotik-auto-upgrade:用于自动升级MikroTik RouterOS版本的几行

    带有Ansible的MikroTik RouterOS... chmod +x ansible-mikrotik-auto-upgrade.sh && ./ansible-mikrotik-auto-upgrade.sh 但是如果您有其他方法也可以:) DWYOR Ansible安装指南 https://docs.ansible.com/ansible/la

    os-x-power-user-guide:适用于高级用户的Mac OS X入门

    OS X高级用户指南 命令行界面 基于Unix的OS X具有bash shell,可通过Terminal应用程序进行访问 我建议切换到“ Pro”主题(“ Terminal > Preference > Profiles ) 您甚至可以设置~/.bash_profile (等效于.bashrc...

    mac-os-x-setup-guide:Mac OS X安装指南设置指南

    **Mac OS X安装指南设置指南** Mac OS X,也被称为 macOS,是苹果公司为其桌面和笔记本电脑设计的操作系统。这份指南将深入探讨如何在Mac上进行初始安装和配置,以及如何利用Homebrew来管理和安装软件。 ### 1. **...

    rockchip linux刷机工具upgrade_tool

    "Linux刷机工具upgrade_tool"是Rockchip为这些设备提供的一个专用软件,用于更新或升级设备的操作系统。这个工具是Linux系统下的,意味着它专门设计在Linux环境下运行,帮助用户方便地对基于Rockchip处理器的设备...

    svn_subversion

    sudo apt-get upgrade ``` 2. **安装依赖**: Subversion需要一些依赖项才能正常运行。这些依赖项在"subversion-deps-1.6.1.tar.gz"文件中,可能包含了如apr、apr-util等必要的库。在Ubuntu上,我们可以使用apt...

    ffmpeg + x265 + x264

    sudo apt-get upgrade ``` 2. 安装依赖库: ```bash sudo apt-get install build-essential yasm libnuma-dev libx264-dev libx265-dev ``` 3. 下载FFmpeg源代码: ```bash wget ...

    Windows10Upgrade9252.zip

    在众多版本中,“Windows 10 Upgrade 9252”是一个重要的里程碑,它在Windows 10的发展历程中占据着特殊的地位。这一版本不仅引入了多项新功能,还修复了前一版本存在的问题,旨在为用户提供更加稳定和流畅的操作...

    linux第十三刀_Linux上安装Subversion

    **Linux上安装Subversion** Subversion(简称SVN)是一种版本控制系统,用于管理软件开发过程中文件和目录的变更历史。它允许团队成员协同工作,跟踪每个更改,以便于回滚错误,合并代码,并进行版本控制。这篇博客...

    QCC300X_SOFTWARE_UPGRADE_USER_GUIDE

    文档《QCC300X_SOFTWARE_UPGRADE_USER_GUIDE》是一份关于QCC300x系列芯片组的官方空中升级(OTA)指南,由Qualcomm Technologies International, Ltd.(前Cambridge Silicon Radio Limited)提供。这份指南详细指导...

    联想A20改造固件:online_upgrade_img-首诺G1.rar

    标题中的“联想A20改造固件:online_upgrade_img-首诺G1.rar”表明这是一个针对联想A20设备的固件升级包,文件名中的"online_upgrade_img"暗示这可能是一个在线升级映像,而"首诺G1"可能是设备的特定型号或者定制版...

    SP Upgrade (Joomla 1.5升级至2.5~3.x组件)

    迁移你旧的Joomla 1.5网站数据库到Joomla 2.5~3.x的数据库里。 https://extensions.joomla.org/extensions/extension/migration-a-conversion/joomla-migration/sp-upgrade/ SP Upgrade supports transferring ...

    subversion-1.9.3安装文件+依赖的所有jar+安装步骤(Linux)

    Subversion(简称SVN)是一种广泛使用的版本控制系统,它允许用户跟踪文件和目录的变化,管理多人协作时的代码版本。本篇文章将详细讲解如何在Linux系统中安装Subversion 1.9.3版本,以及所需的依赖项和安装过程。 ...

    Windows10Upgrade9252

    Windows10Upgrade9252.exe

    babel-upgrade-online:一个微型编辑器,用于升级Babel版本(至v7)

    `babel-upgrade-online` 的标签包括 "babel"、"babel-upgrade"、"babel-upgrade-online" 和 "BabelJavaScript",这些标签揭示了该项目与Babel库、Babel的升级过程、以及与JavaScript相关的主题紧密相关。对于熟悉...

    Erom Upgrade For Ali 351x_EROM_ali_rs232_PROG_

    本篇文章将围绕"Ali351x EROM Upgrade For Ali 351x_EROM_ali_rs232_PROG_"这一主题,深入探讨其中涉及的几个核心概念:EROM、ALI、RS232以及PROG,并解析它们在芯片升级过程中的作用和重要性。 首先,EROM(扩展...

Global site tag (gtag.js) - Google Analytics