SVN自动安装

来源:互联网 发布:小票打印软件 编辑:程序博客网 时间:2024/05/21 11:09
注:任何安装程序中,都会有ReadMe,INSTALL等安装说明文件,这是最靠谱的办法。然而这些文件是很长的。所以,总结了简化办法。

svn程序全名(含版本)subversion:subversion-1.6.17, 可获得来源:wget svn.baidu.com/downloads/subversion-1.6.17_with_dep.tar.gz 功能:版本控制系统,subversion:颠覆之意也。

安装方法

  1. 解压:tar xzvf subversion-1.6.17_with_dep.tar.gz && cd subversion-1.6.17
  2. less README(重要,可略过)
  3. less INSTALL(重要,最好看看)
  4. ./configure --with-ssl
  5. cd apr; ./buildconf; cd ..
  6. cd apr-util; ./buildconf; cd ..
  7. make
  8. su root&&输入密码
  9. make install,完成。
  10. su work

注:如果有偏差,请仔细阅读INSTALL,皆有详解。

自动安装SVN脚本(建议安装svn以root用户安装) Shell Scrpit

#!/bin/bashset -euvrm -f /tmp/subversion-1.6.17_with_dep.tar.gz*wget -P /tmp/ svn.baidu.com/downloads/subversion-1.6.17_with_dep.tar.gzcd /home/worktar xzvf /tmp/subversion-1.6.17_with_dep.tar.gz && cd subversion-1.6.17./configure --with-sslcd apr && ./buildconf && cd ..cd apr-util && ./buildconf && cd ..makemake install #这里需要些/usr/目录,故而需要root用户。rm /tmp/subversion-1.6.17_with_dep.tar.gz

svn命令 网址:http://svn.baidu.com/help/command.htm,有详解 最常用用法: svn co URL URL网址可从http://work.baidu.com/index.action获得,注意URL要带着前面的https://。

可能会出现如下信息,网站向本机发送证书,p永久保存即可。svn需要账户密码,事先应该处理好。

Error validating server certificate for 'https://svn.baidu.com:443': - The certificate is not issued by a trusted authority. Use the   fingerprint to validate the certificate manually!Certificate information: - Hostname: svn.baidu.com - Valid: from Tue, 16 Mar 2010 10:45:03 GMT until Fri, 13 Mar 2020 10:45:03 GMT - Issuer: baidu, baidu, BEIJING, BEIJING, CN - Fingerprint: ad:77:84:4d:5d:fb:7a:c8:f7:2e:fb:48:20:86:3a:0e:73:43:e7:62(R)eject, accept (t)emporarily or accept (p)ermanently? p
原创粉丝点击