添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Hey all,
I'm using Django 1.2 for Python 2.6 on CentOS 5.5 and I'm trying to install Django Haystack with Xapian as the search backend. I've followed the installation instructions on http://docs.haystacksearch.org/dev/i...es.html#xapian and also the instructions for the RedHat Enterprise Linux RPM package on http://xapian.org/download. Xapian has installed, but has attached itself to Python 2.4, which needs to be present in CentOS for other reasons. So, if I go into a 'python' shell and 'import xapian' it works correctly, but if I go into a 'python26' shell and 'import xapian' I get the error 'No module named Xapian'.
I then tried creating a symlink in the python 2.6 site packages to Xapian in the python 2.4 site packages and this gave me the following error when trying to import xapian in the python 2.6 shell:
RuntimeWarning: Python C API version mismatch for module _xapian: This Python has API version 1013, module _xapian has version 1012.
I've also tried to specify the python library to use when configuring xapian-core as seen on http://invisibleroads.com/tutorials/...-on-webfaction, so the command I used was:
[code]./configure PYTHON=/usr/bin/python2.6[/code]
then for installing xapian-bindings I used:
[code]./configure PYTHON=/usr/bin/python26 PYTHON_LIB=/usr/lib/python2.6 --with-python[/code]
This made no discernible difference so I'm a bit stuck at the moment. Does anyone have any ideas?
  • ↳   Website Problems
  • CentOS 8 / 8-Stream / 9-Stream
  • ↳   8 /8-Stream / 9-Stream - General Support
  • ↳   8 /8-Stream / 9-Stream - Hardware Support
  • ↳   8 /8-Stream / 9-Stream - Networking Support
  • ↳   8 /8-Stream / 9-Stream - Security Support
  • CentOS 7
  • ↳   CentOS 7 - General Support
  • ↳   CentOS 7 - Software Support
  • ↳   CentOS 7 - Hardware Support
  • ↳   CentOS 7 - Networking Support
  • ↳   CentOS 7 - Security Support
  • CentOS Legacy Versions
  • ↳   CentOS 5
  • ↳   CentOS 5 - General Support
  • ↳   CentOS 5 - Software Support
  • ↳   CentOS 5 - Hardware Support
  • ↳   CentOS 5 - Networking Support
  • ↳   CentOS 5 - Server Support
  • ↳   CentOS 5 - Security Support
  • ↳   CentOS 5 - Oracle Installation and Support
  • ↳   CentOS 5 - Miscellaneous Questions
  • ↳   CentOS 6
  • ↳   CentOS 6 - General Support
  • ↳   CentOS 6 - Software Support
  • ↳   CentOS 6 - Hardware Support
  • ↳   CentOS 6 - Networking Support
  • ↳   CentOS 6 - Security Support
  •