我刚刚经历了一些使用django-haystack和xapian的root用户安装过程,最终我的其他用户和所有的响应似乎都没问题。django centos xapian haystack
即使当我在我的other_user
壳中,并运行import xapian
和import haystack
它都运行没有任何错误。
只要我在我的设置文件中取消注释#'haystack',
。并重新启动Apache它抛出一个错误
The 'xapian' backend requires the installation of 'xapian'.
将Xapian安装核心,Xapian的-绑定
任何想法,为什么它会还是不行?
这里是我的配置
./configure --prefix=/home/appel/xapian-install XAPIAN_CONFIG=/home/appel/xapian-install/bin/xapian-config PYTHON=/opt/python2.6/bin/python2.6 PYTHON_LIB=/opt/python2.6/lib/python2.6 --with-python --without-ruby --without-tcl --without-php
我有同样的问题。问题出在Xapian的安装目标是不正确的python版本。你是否在平行运行两个版本的python? – Glycerine 2011-03-02 13:30:11
centos的基本安装决定它是python2.4我有python2.6正在运行,而我的./configure我已经在 – ApPeL 2011-03-02 13:35:55