CentOS 5.5安装配置Trac1.0

1.下载Trac安装包并解压wget tar xvf Trac-1.0.tar.gzcd Trac-1.02.解开之后查看一下其中的INSTALL文件,,其中的Requirements一节详细列出了安装Trac所必须的软件:Python >= 2.5。(CentOS 5.5不符合要求需要升级python)Genshi >= 0.6。(在与Trac同一个网站上有下载)可选的subversion >= 1.0(推荐>=1.1.x)和subversion的SWIG Python绑定PySQLite,需要用于SQLite 3.x版本的PySQLite 2.x版可运行python或CGI的Web服务器

接下来就先解决这些前提条件

yum install -y wget curl curl-devel unzip ncurses-devel libxml2-devel openssl-devel libjpeg-devel libpng-devel freetype-devel autoconf automake libtool gcc gcc-c++ flex bison vim-enhanced python-devel pcre pcre-devel zlib zlib-devel libevent libevent-devel libtool-libs libtool-ltdl libtool-ltdl-devel bzip2 bzip2-devel gdb e2fsprogs-devel安装sqlite 3yum install -y sqlite sqlite-devel

安装subversionyum install -y subversion subversion-devel

安装python2.7wget tar xvf Python-2.7.1.tgzcd Python-2.7.1./configure –enable-shared //一定要加上–enable-shared参数,否则下面装mod_python会报错make && make installecho ‘/usr/local/lib’ >> /etc/ld.so.conf && ldconfig安装python setuptools-0.6wget tar xvf setuptools-0.6c11.tar.gzcd setuptools-0.6c11python setup.py install安装Genshiwget tar xvf Genshi-0.6.tar.gzcd Genshi-0.6python setup.py install安装PySQLite 2.xwget

tar xvf pysqlite-2.6.3.tar.gz cd pysqlite-2.6.3python setup.py install安装apachewget tar xvf httpd-2.2.17.tar.gzcd cd httpd-2.2.17./configure –prefix=/usr/local/apache –enable-so –enable-rewrite –enable-proxy –enable-ssl –with-sslmake && make installvi /usr/local/apache/conf/httpd.conf修改apache以apache用户和apache用户组运行安装mod_python-3.3.1(apache的python模块)wget tar xvf mod_python-3.3.1.tgzcd mod_python-3.3.1./configure –with-apxs=/usr/local/apache/bin/apxs –with-python=/usr/local/bin/python –with-max-locks=32 –with-flex=/usr/bin/flexmake && make installecho ‘LoadModule python_module modules/mod_python.so’ >>/usr/local/apache/conf/httpd.conf

我等你用尽了所有的哀伤;而你眼中却有我所不懂的凄凉。

CentOS 5.5安装配置Trac1.0

相关文章:

你感兴趣的文章:

标签云: