Rewiew Board

下面的教程在 CentOS 5.5 x86_64 下完成。

添加 epel 源,安装 http/mysql:

# rpm -ivh http://mirrors.ustc.edu.cn/epel/5Client/x86_64/epel-release-5-4.noarch.rpm
# yum makecache
# yum install mysql mysql-server

安装 python setuptools,Python Development Headers

# yum install python-setuptools
# yum install python-devel

安装 memcached:

# yum install memcached
# yum install python-memcached
  
安装 patch:

# yum install patch

安装 ReviewBoard

# easy_install ReviewBoard

在该过程中,会出现如下错误:

_mysql.c: In function ‘_mysql_ResultObject_dealloc’:
_mysql.c:2099: warning: implicit declaration of function ‘mysql_free_result’
_mysql.c:2099: error: ‘_mysql_ResultObject’ has no member named ‘result’
_mysql.c: At top level:
_mysql.c:2330: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
_mysql.c:2337: error: ‘_mysql_ConnectionObject’ has no member named ‘converter’
_mysql.c:2344: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:2351: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:2358: error: ‘_mysql_ConnectionObject’ has no member named ‘connection’
_mysql.c:2421: error: ‘_mysql_ResultObject’ has no member named ‘converter’
_mysql.c:2421: error: initializer element is not constant
_mysql.c:2421: error: (near initialization for ‘_mysql_ResultObject_memberlist[0].offset’)
_mysql.c: In function ‘_mysql_ConnectionObject_getattr’:
_mysql.c:2443: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
error: Setup script exited with error: command ‘gcc’ failed with exit status 1

安装 mysql-devel:

# yum install mysql-devel

绑定 mysql 跟 python:

# yum install mysql-python

安装版本控制软件:

# yum install subversion

通过 re-site 创建站点:

# rb-site install /var/www/rb

根据实际情况,回答一些问题。
在生成 rb 的 www 配置文件,重启 apache 时,会出现如下的错误:

Invalid command 'PythonPath', perhaps misspelled or defined by a module not included in the server configuration

安装相应的模块:

# yum install mod_python

  • http://dddspace.com alswl

    来自nanjinglug
    blog缺少site-map

    • jaseywang

      欢迎 ;-)
      site-map 是有的,只不过好久没更新了。