SVN的學習和使用(二)——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命令找不到的錯誤。

[runoob@centos6 ~]$ svn --version
bash: svn: command not found

我們可以使用 yum install subversion 命令進行安裝。

[runoob@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@runoob:~# svn --versionThe program 'svn' is currently not installed. You can install it by typing:apt-get install subversion

我們可以使用 apt-get 命令進行安裝

root@runoob:~# apt-get install subversionReading package lists... DoneBuilding dependency tree       
Reading state information... DoneThe 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-shadowUse 'apt-get autoremove' to remove them.The following extra packages will be installed:
  libserf-1-1 libsvn1...

安裝成功之後,執行 svn --version 命令。

root@runoob:~# svn --version
svn, version 1.8.13 (r1667537)
   compiled Sep  8 2015, 14:59:01 on x86_64-pc-linux-gnu

至此,Ubuntu下的SVN安裝完成。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章