pip install ReviewBoard
1.修改pip源,默认源网络不畅
pip install -i http://pypi.douban.com/simple simplejson
2.python-mysql 安装缺少mysql_config
yum -y install mysql-devel
3.Python 缺少bz2 模块
yum install bzip2-devel
cp /usr/lib64/python2.6/lib-dynload/bz2.so /usr/local/lib/python2.7
4.Unable to execute the manager command syncdb: No module named PIL
wget http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz
python setup.py install
5.由于是yum默认安装httpd和mod_wsgi,
rb-site install /var/www/reviewboard 之后
cp /var/www/reviewboard/conf/apache_wsgi.conf /etc/httpd/conf.d/
service httpd restart
一直导致无法加载,页面报 Review Board is taking a nap ?
日志报无法使用 reviewboard.wsgi做为一个python module
分析原因:mod_wsgi依然使用的是python2.6,而本系统已经更新到python2.7.13
所以需要在本系统重新编译安装mod_wsgi,当然由于其它原因,又重新安装python2.7.13(源码编译安装,且配置时带参数:./configure --enable-shared
)
以上重新处理完成,由于没有指定prefix ,所以需要设置/usr/local/lib 到 /etc/ld.so.conf 中,
最后重启httpd,根据日志提示又用pip安装了futures和Pillow
最后终于可以view了,如下:
ps:
mod_wsgi 源码地址:https://code.google.com/archive/p/modwsgi/downloads
reviewboard使用:https://shirphy.gitbooks.io/reviewboard-installation-guider/content/index.html