【发布时间】:2013-05-03 18:33:28
【问题描述】:
我刚刚在我的 root 用户和最终我的其他用户上使用 django-haystack 和 xapian 进行了一些安装过程,所有响应似乎都没有问题。
即使我在 shell 中的 other_user 中,并运行 import xapian 和 import haystack,它也能正常运行。
只要我在设置文件中取消注释 #'haystack',。并重新启动 apache 它会引发错误
The 'xapian' backend requires the installation of 'xapian'.
已安装 xapian-core、xapian-bindings
任何想法为什么它仍然不起作用?
这里是我的配置
./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
【问题讨论】:
-
我遇到了同样的问题。问题在于针对不正确版本的 python 安装 Xapian。你在并行运行两个版本的python吗?
-
centos 的基本安装表明它是 python2.4 我运行的是 python2.6 并且我的 ./configure 我已经在上面添加了
标签: django django-haystack centos5 xapian