【问题标题】:django centos xapian haystackdjango centos xapian haystack
【发布时间】:2013-05-03 18:33:28
【问题描述】:

我刚刚在我的 root 用户和最终我的其他用户上使用 django-haystack 和 xapian 进行了一些安装过程,所有响应似乎都没有问题。

即使我在 shell 中的 other_user 中,并运行 import xapianimport 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


【解决方案1】:

从 apt-get / pip 存储库收集 Xapian 并不能满足您的所有需求。 在并行安装中,xapian-bindings 是错误的版本,无法正确绑定到使用的 python。

我不确定他们具体做什么。

确保为关联的 python26 安装正确版本的绑定 - 一旦完成,它就很容易安装和使用 Xapian 和 Haystack

http://xapian.org/download

如果您找到所需的确切下载 - 请在我丢失时分享它。

希望对你有帮助。

【讨论】:

  • 所以你的意思是,使用 yum 来安装所有版本?
  • 嗯。我不认为我这样做。据我所知-您只能通过搜索互联网来获得正确的绑定。至少当我尝试时,我在 Yum repo 上找不到它。
猜你喜欢
  • 1970-01-01
  • 2011-10-26
  • 2012-07-30
  • 1970-01-01
  • 2012-01-08
  • 1970-01-01
  • 2017-11-11
  • 1970-01-01
  • 2014-09-24
相关资源
最近更新 更多