在RH9安裝Subversion


由於目前工作的環境還是RH9,雖然有CVS但是還是覺得很不習慣。
所以還是嘗試在RH9安裝Subversion。

【Linux Distribution】

  • RedHat 9

【Requirement Packages】

There're at least three requirement packages(including subversion).       

  1. Openssl
    - enable https protocol support (ex. svn co https://xxx")       
  2. Apr/Apr-util/neon
    - necessary packages for subversion       
  3. Subversion
    - the currently version is 1.6.1

【Installation Procedure】

  1. openssl installation
    - skip this step, OpenSSL 0.9.6b already in our workspace
  2. apr/apr-util/neon installation
    - download code form http://subversion.tigris.org/
    - below command only FYR
  3. # get subversion-deps-1.6.1.tar.bz2
    $ wget http://subversion.tigris.org/downloads/subversion-deps-1.6.1.tar.bz2
    $ tar jxvf subversion-deps-1.6.1.tar.bz2
    $ cd subversion-1.6.1
    # apr installation
    $ cd apr./configure
    $ make;make install
    $ cd ..
    # apr-util installation
    $ cd apr-util
    $ ./configure --with-apr=../apr
    $ make;make install
    $ cd ..
    # neon installation
    $ cd neon
    $ ./configure --with-ssl=openssl

    # ps. Check below message to make sure turn openssl on
    # Install prefix:  /usr/local
    # Compiler:        gcc
    # XML Parser:      expat
    # SSL library:     SSL support enabled, using OpenSSL (0.9.6 or later) (<= make sure turn openssl on)
    # zlib support:    zlib support enabled, using -lz
    # Build libraries: Shared=no, Static=yes
    $ make;make install

  4. Subversion
    - download code from http://subversion.tigris.org/
    - below command only FYR
  5. $ wget http://subversion.tigris.org/downloads/subversion-1.6.1.tar.bz2
    $ ./configure --with-ssl --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr

    # ps. Please ignore below message
    # You don't seem to have Berkeley DB version 4.0.14 or newer
    # installed and linked to APR-UTIL.  We have created Makefiles which
    # will build without the Berkeley DB back-end; your repositories will
    # use FSFS as the default back-end.  You can find the latest version of
    # Berkeley DB here:
    #   http://www.oracle.com/technology/software/products/berkeley-db/index.html

    $ make;make install


【Testing】

  1. Checkout via http protocol
    - use below command for testing
      $ svn co http://svn.edgewall.org/repos/trac/trunk trac
  2. Checkout via https protocol
    - use below command for testing
      $ svn co https://crossfire.svn.sourceforge.net/svnroot/crossfire/arch
  3. Checkout via svn protocol
    - use below command for testing
      $ svn co svn://anonsvn.mono-project.com/source/trunk

【Troubleshoot】

  1. appear below message
    svn: Unrecognized URL scheme
    - please install neon
  2. appear below message
    svn: SSL is not supported
    - please build neon with ssl support
  3. appear below message
    svn: Can't convert string from 'UTF-8' to native encoding:
    - export LANG setting
      $ export LANG=zh_TW.UTF-8 (traditional chinese) or
      $ export LANG=zh_CN.UTF-8 (simply chinese)
  4. how to delect all .svn files
    - please use below command
      $ find . -type d -name ".svn"|xargs rm -rf
 

Ed32. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com