由於目前工作的環境還是RH9,雖然有CVS但是還是覺得很不習慣。
所以還是嘗試在RH9安裝Subversion。
【Linux Distribution】
- RedHat 9
【Requirement Packages】
There're at least three requirement packages(including subversion).
- Openssl
- enable https protocol support (ex. svn co https://xxx") - Apr/Apr-util/neon
- necessary packages for subversion - Subversion
- the currently version is 1.6.1
【Installation Procedure】
- openssl installation
- skip this step, OpenSSL 0.9.6b already in our workspace - apr/apr-util/neon installation
- download code form http://subversion.tigris.org/
- below command only FYR - Subversion
- download code from http://subversion.tigris.org/
- below command only FYR
# 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 |
$ wget http://subversion.tigris.org/downloads/subversion-1.6.1.tar.bz2 # ps. Please ignore below message $ make;make install |
【Testing】
- Checkout via http protocol
- use below command for testing
$ svn co http://svn.edgewall.org/repos/trac/trunk trac - Checkout via https protocol
- use below command for testing
$ svn co https://crossfire.svn.sourceforge.net/svnroot/crossfire/arch - Checkout via svn protocol
- use below command for testing
$ svn co svn://anonsvn.mono-project.com/source/trunk
【Troubleshoot】
- appear below message
svn: Unrecognized URL scheme
- please install neon - appear below message
svn: SSL is not supported
- please build neon with ssl support - 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) - how to delect all .svn files
- please use below command
$ find . -type d -name ".svn"|xargs rm -rf