close
最主要的參考文章為 trac參考文章 安裝trac外掛的地方為 trac外掛下載點 當複制整個svn和trac相關資料夾時遇到的問題為 原本的CentOS預設的svn版本較舊 所以我們要安裝新版的svn 以 WANdisco 的 binary distribution 安裝 subversion 1.6.13
- 到 WANdisco 網站 http://www.wandisco.com/subversion/os/downloads 下載 CentOS 5 的 Subversion (需要註冊一個免費帳號) 安裝 script, 一個叫做 svninstall_centos5_wandisco.sh 的檔案
- chmod +x svninstall_centos5_wandisco.sh
- ./svninstall_centos5_wandisco.sh
- 安裝時會問幾個問題, 都回答 "y"
此外如果沒有關selinux的話記得
chcon -R -t httpd_sys_content_t /var/trac
chcon -R -t httpd_sys_content_t /var/svn
至於如何查看svn的版本 /usr/bin/svnversion --version 這樣的話基本上就沒有問題了
====重新安裝後遇到的問題=====
ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 13] Permission denied: '/var/trac/.egg-cache' The Python egg cache directory is currently set to: /var/trac/.egg-cache Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. 由於之前是直接復制整個/var/trac資料夾 所以沒發現到這個問題 但事實上我們要建一個/var/trac/.egg-cache 來讓trac外掛做cache =======接著又遇到==========================Traceback (most recent call last): OSError: [Errno 2] No such file or directory: '/usr/lib/python2.4/site-packages/trac/locale'後來查到的解法為# cd /tmp # wget http://ftp.edgewall.com/pub/trac/Trac-0.12.tar.gz # tar xvzf Trac-0.12.tar.gz # cp -a Trac-0.12/trac/locale /usr/lib/python2.4/site-packages/trac/locale 接著就可以正常使用了
全站熱搜