首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > CVS SVN >

Linux装配SVN与配置(自己总结)

2013-09-28 
Linux安装SVN与配置(自己总结)安装:1.下载svn安装包:wget http://svn.test.com/downloads/subversion-1.6.

Linux安装SVN与配置(自己总结)


安装:


1.下载svn安装包:

   wget http://svn.test.com/downloads/subversion-1.6.5_with_dep.tar.gz


2.解压:

   tar zxf subversion-1.6.5_with_dep.tar.gz


3.进入安装包:

  cd subversion-1.6.5


4.自定义svn安装路径:

   ./configure --with-ssl --prefix=/home/work/svn --exec-prefix=/home/work/svn


5.很有必要:

      make clean

(在make install的时候出现libtool: install: error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apr/lib的错误,查了一下发现是因为执行configure后没有make clean,就直接make导致的,clean后重新make,问题解决。)


6.

  make


7.

  make install


8.创建连接(不是很必要):

ln -s /home/work/svn/bin/svn /home/work/bin/svn


9.Happy Using~


配置:


1.修改配置文件:

   vi .bash_profile


# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then        . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/bin#export PATH JAVA_HOME=/home/sandbox/jdk1.6.0_30CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarSVN_HOME=/home/sandbox/sandbox_svnMAVEN_HOME=/home/sandbox/ci_tools/mavenPATH=$SVN_HOME/bin:$JAVA_HOME/bin:$MAVEN_HOME/bin:/home/sandbox/ci_tools/usr/bin:/home/sandbox/ci_tools/sloccount-2.26:$PATHexport CLASSPATHexport PATH#export CATALINA_BASE=/home/work/usr/apache-tomcat-6.0.37#export CATALINA_HOME=/home/work/usr/apache-tomcat-6.0.37#export CATALINA_BASE=/home/work/voc2_tomcat#export CATALINA_HOME=/home/work/voc2_tomcat#unset USERNAME



2.生效环境变量:(一定记住!!!!!!!!)

source .bash_profile

热点排行