Mac OSX 10.8安裝SVN的方法

來源:互聯網
上載者:User

Mac OSX 10.8安裝SVN的方法 Mac OS X 10.8安裝SVN的常用的三種方法 ln 建立軟串連配置全域環境Xcode安裝命令列工具對於Mac新系統Mountain Lion 10.8.3 而言,其終端內建的svn 命令預設已經不可用了:1micmiu-mbp:~ micmiu$ svn2-bash: svn: command not found
 下面介紹詳細介紹安裝svn常用的三種方法: 方法一、首先安裝Xcode工具(appstore可以直接安裝),然後再終端裡如下命令即可:1sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/svn /usr/bin/svntips: /Applications/Xcode.app 指xcode的安裝路徑,這裡的值是它的預設路徑 終端輸入:svn –version 可驗證下命令是否成功: 1micmiu-mbp:~ micmiu$ svn --version2svn, version 1.6.18 (r1303927)3   compiled Feb  6 2013, 14:18:524 5Copyright (C) 2000-2009 CollabNet.6Subversion is open source software, see http://subversion.apache.org/7This product includes software developed by CollabNet (http://www.Collab.Net/).8 9The following repository access (RA) modules are available:10 11* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.12  - handles 'http' scheme13  - handles 'https' scheme14* ra_svn : Module for accessing a repository using the svn network protocol.15  - handles 'svn' scheme16* ra_local : Module for accessing a repository on local disk.17  - handles 'file' scheme方法二、配置全域環境變數/etc/paths 編輯/etc/paths ,把xcode相關bin路徑:/Applications/Xcode.app/Contents/Developer/usr/bin 添加到檔案末: 1/usr/bin2/bin3/usr/sbin4/sbin5/usr/local/bin6/Applications/Xcode.app/Contents/Developer/usr/bin這個方法可以把xcode下面很多的命令直接添進終端的環境變數裡面。 方法三、Xcode安裝命令列工具 開啟xcode,依次 Preferences > Downloads > Command Line Tools ,點擊 install 安裝。 
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.