歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

Linux安裝SVN與配置(自己總結)

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 functions   if [ -f ~/.bashrc ]; then           . ~/.bashrc   fi      # User specific environment and startup programs      PATH=$PATH:$HOME/bin      #export PATH    JAVA_HOME=/home/sandbox/jdk1.6.0_30   CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar      SVN_HOME=/home/sandbox/sandbox_svn   MAVEN_HOME=/home/sandbox/ci_tools/maven   PATH=$SVN_HOME/bin:$JAVA_HOME/bin:$MAVEN_HOME/bin:/home/sandbox/ci_tools/usr/bin:/home/sandbox/ci_tools/sloccount-2.26:$PATH      export CLASSPATH   export 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
 
Copyright © Linux教程網 All Rights Reserved