SVN 安裝
在windows下安裝 SVN
1、準備svn的安裝檔
下載地址:https://sourceforge.net/projects/win32svn/
2、下載完成後,在相應的盤符中會有一個Setup-Subversion-1.8.16.msi的檔,目前最新的版本是1.8.16, 這裏就使用這個版本。然後雙擊安裝檔進行安裝。我們指定安裝在D:\Program Files (x86)\Subversion目錄裏。
3、查看目錄結構
把svn安裝目錄裏的bin目錄添加到path路徑中,在命令行窗口中輸入 svnserve --help ,查看安裝正常與否。
至此,windows下的SVN安裝完成
在CentOS下安裝 SVN
大多數 GNU/Linux 發行版系統自帶了Subversion ,所以它很有可能已經安裝在你的系統上了。可以使用下麵命令檢查是否安裝了。
svn --version
如果 Subversion 客戶端沒有安裝,命令將報告svn命令找不到的錯誤。
[zaixian@centos6 ~]$ svn --version bash: svn: command not found
我們可以使用 yum install subversion 命令進行安裝。
[zaixian@centos6 root]$ su - 密碼: [root@centos6 ~]# yum install subversion 已加載插件:fastestmirror, security 設置安裝進程 Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirrors.neusoft.edu.cn * extras: mirrors.zju.edu.cn * updates: mirrors.aliyun.com 解決依賴關係 --> 執行事務檢查 ...
安裝成功之後,執行 svn --version 命令。
[root@centos6 ~]# svn --version svn,版本 1.6.11 (r934486) 編譯於 Aug 17 2015,08:37:43
至此,centos下的SVN安裝完成。
在Ubuntu下安裝 SVN
如果 Subversion 客戶端沒有安裝,命令將報告svn命令找不到的錯誤。
root@zaixian:~# svn --version The program 'svn' is currently not installed. You can install it by typing: apt-get install subversion
我們可以使用 apt-get 命令進行安裝
root@zaixian:~# apt-get install subversion Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: augeas-lenses hiera libaugeas0 libxslt1.1 ruby-augeas ruby-deep-merge ruby-json ruby-nokogiri ruby-rgen ruby-safe-yaml ruby-selinux ruby-shadow Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libserf-1-1 libsvn1 ...
安裝成功之後,執行 svn --version 命令。
root@zaixian:~# svn --version svn, version 1.8.13 (r1667537) compiled Sep 8 2015, 14:59:01 on x86_64-pc-linux-gnu
至此,Ubuntu下的SVN安裝完成。