网站运营
位置:首页>> 网站运营>> 搭建apache+svn+trac平台(2)

搭建apache+svn+trac平台(2)

 来源:互联网 发布时间:2008-09-26 17:10:00 

标签:


二、trac官网安装方法

三、各个包的安装方法:
1、python:
#tarxjvfPython-2.5.tar.gx
#cdPython-2.5
#./configure--with-apxs=/usr/local/apache/sbin/apxs
#make;makeinstall
2、clearsilver:
如果报此错就说明clearsilver没有安装好TracError:ClearSilvernotinstalled(Nomodulenamedneo_cgi)
#tarxfzclearsilver-0.10.5.tar.gz
#cdclearsilver-0.10.5
#./configure--disable-apache--disable-csharp--disable-ruby--prefix=/usr--with-python=/usr/local/bin/python
#sed-i"s@/usr/local/bin/python@/usr/bin/env
[email=python@g]python@g[/email]
"scripts/document.py
#make||return1
#makeinstall
#cdpython
#PYTHON_SITE=`/usr/local/bin/python-c\
"importsys;print[pathforpathinsys.pathifpath.find('site-packages')!=-1][0]"`
#pythonsetup.pyinstall

3、mysql_python:
#tarxfzMySQL-python-1.2.1.tar.gz
#cdMySQL-python-1.2.1
#pythonsetup.pybuild
#pythonsetup.pyinstall
在安装mysql_python之前一定要装好mysql_client
如果提示无法找到mysql_config
visite.cfg
#mysql_config=/usr/local/bin/mysql_config
去掉注释,改为你mysql_config所在的路径
4、mod_python:
#tarzxvfmod_python-3.3.1.tar.gz
#cdmod_python-3.3.1
#./configure--with-apxs=/usr/local/apache/sbin/apxs
#make
#makeinstall
在apache配置文件里加入模块
vi/usr/local/apache2/conf/httpd.conf
LoadModulepython_modulemodules/mod_python.so


0
投稿

猜你喜欢

手机版 网站运营 asp之家 www.aspxhome.com