설치 참고 사이트
Linux설치시 설치된 Python이 아니라, 추가로 Python을 설치해서인지 몇가지 고생한 사항에 대해서만 기록합니다.
1. Subversion 설치
build/find_python.sh 파일의
echo $pypath 부분을 echo /usr/local/python2.4.4/bin/python 로 수정
/usr/local/python2.4.4/lib/python2.4/site-packages 디렉토리에서
ln -s /usr/local/lib/svn-python/libsvn libsvn
ln -s /usr/local/lib/svn-python/svn svn
2. Trac
Trac Admin으로 생성된 프로젝트 경로의 읽기 권한 체크
trac-admin /data/trac/acepro initenv 와 같이 했을경우
chown -R nobody:nobody /data/trac/acepro
한글이 깨저 보일경우
httpd.conf에
PythonOption TracLocale "ko_KR.utf8"
추가
/data/trac/acepro/conf/trac.ini
파일에
default_charset 값을 utf-8로 변경
3. 참고로 제가 다운 받은 파일과 설치 명령어 입니다.
Swig
wget http://downloads.sourceforge.net/swig/ ··· rror%3D0
configure --with-python=/usr/local/python2.4.4/bin/python
make & make install
Subversion
wget http://subversion.tigris.org/downloads ··· 5.tar.gz
sed -e 's/"103029"/"103031"/g' configure.orig > configure
configure --with-zlib --with-apxs=/opt/lampp/bin/apxs --without-berkeley-db
make & make install
make swig-py && make install-swig-py
Pysqlite
http://initd.org/pub/software/pysqlite ··· 0.tar.gz
python setup.py install
clearsilver
http://www.clearsilver.net/downloads/c ··· 5.tar.gz
configure --with-python=/usr/local/python2.4.4/bin/python
mod_python
http://apache.tt.co.kr/httpd/modpython ··· .3.1.tgz
configure --with-apxs=/opt/lampp/bin/apxs
Trac
영문 : http://ftp.edgewall.com/pub/trac/trac-0.10.4.tar.gz
한글 : http://kldp.net/frs/download.php/3862/ ··· o.tar.gz
SVN 데몬 구동
/usr/local/bin/svnserve -d -r /data/svn
Trac 데몬 구동(테스트후 Apache 연동으로 변경)
tracd --port 8000 /data/trac/acepro
httpd.conf 추가 및 확인사항
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule python_module modules/mod_python.so
<VirtualHost *:80>
ServerName svn.redjini.com
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /data/trac
PythonOption TracUriRoot /
PythonOption TracLocale "ko_KR.utf8"
<Location /acepro>
Require valid-user
AuthType Basic
AuthName "Acepro Project"
AuthUserFile /data/svn/svn-auth-file
</Location>
<Location /svn>
DAV svn
SVNParentPath /data/svn
#SVNPath /data/svn/*
Require valid-user
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /data/svn/svn-auth-file
</Location>
</VirtualHost>
trac-admin /home/trac/itstec permission remove anonymous '*'
anonymous 라는 사용자,혹은 그룹에 모든 권한을 삭제
trac-admin /home/trac/piopio permission add developer WIKI_ADMIN
trac-admin /home/trac/piopio permission add developer WIKI_CREATE
trac-admin /home/trac/piopio permission add developer WIKI_MODIFY
trac-admin /home/trac/piopio permission add developer WIKI_VIEW
trac-admin /home/trac/piopio permission add acepro developer
wget http://downloads.sourceforge.net/swig/ ··· rror%3D0
configure --with-python=/usr/local/python2.4.4/bin/python
make & make install
Subversion
wget http://subversion.tigris.org/downloads ··· 5.tar.gz
sed -e 's/"103029"/"103031"/g' configure.orig > configure
configure --with-zlib --with-apxs=/opt/lampp/bin/apxs --without-berkeley-db
make & make install
make swig-py && make install-swig-py
Pysqlite
http://initd.org/pub/software/pysqlite ··· 0.tar.gz
python setup.py install
clearsilver
http://www.clearsilver.net/downloads/c ··· 5.tar.gz
configure --with-python=/usr/local/python2.4.4/bin/python
mod_python
http://apache.tt.co.kr/httpd/modpython ··· .3.1.tgz
configure --with-apxs=/opt/lampp/bin/apxs
Trac
영문 : http://ftp.edgewall.com/pub/trac/trac-0.10.4.tar.gz
한글 : http://kldp.net/frs/download.php/3862/ ··· o.tar.gz
SVN 데몬 구동
/usr/local/bin/svnserve -d -r /data/svn
Trac 데몬 구동(테스트후 Apache 연동으로 변경)
tracd --port 8000 /data/trac/acepro
httpd.conf 추가 및 확인사항
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
LoadModule python_module modules/mod_python.so
<VirtualHost *:80>
ServerName svn.redjini.com
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /data/trac
PythonOption TracUriRoot /
PythonOption TracLocale "ko_KR.utf8"
<Location /acepro>
Require valid-user
AuthType Basic
AuthName "Acepro Project"
AuthUserFile /data/svn/svn-auth-file
</Location>
<Location /svn>
DAV svn
SVNParentPath /data/svn
#SVNPath /data/svn/*
Require valid-user
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /data/svn/svn-auth-file
</Location>
</VirtualHost>
trac-admin /home/trac/itstec permission remove anonymous '*'
anonymous 라는 사용자,혹은 그룹에 모든 권한을 삭제
trac-admin /home/trac/piopio permission add developer WIKI_ADMIN
trac-admin /home/trac/piopio permission add developer WIKI_CREATE
trac-admin /home/trac/piopio permission add developer WIKI_MODIFY
trac-admin /home/trac/piopio permission add developer WIKI_VIEW
trac-admin /home/trac/piopio permission add acepro developer
"프로그래밍 / Subversion" 분류의 다른 글
[svn] history 제거 (0) | 2010/02/25 |