Featured post
django - Install Xapian for Python 2.6 on CentOS 5.5 -
i'm using django 1.2 python 2.6 on centos 5.5 , i'm trying install django haystack xapian search backend. i've followed installation instructions on http://docs.haystacksearch.org/dev/installing_search_engines.html#xapian , instructions redhat enterprise linux rpm package on http://xapian.org/download. xapian has installed, has attached python 2.4, needs present in centos other reasons. so, if go 'python' shell , 'import xapian' works correctly, if go 'python26' shell , 'import xapian' error 'no module named xapian'.
i tried creating symlink in python 2.6 site packages xapian in python 2.4 site packages , gave me following error when trying import xapian in python 2.6 shell:
runtimewarning: python c api version mismatch module _xapian: python has api version 1013, module _xapian has version 1012.
i've tried specify python library use when configuring xapian-core seen on http://invisibleroads.com/tutorials/xapian-search-pylons.html#install-xapian-on-webfaction, command used was:
./configure python=/usr/bin/python2.6
installing xapian-bindings used:
./configure python=/usr/bin/python26 python_lib=/usr/lib/python2.6 --with-python
made no discernible difference i'm bit stuck @ moment. have ideas?
when building xapian-bindings package you'll want ./configure --with-python python=/usr/bin/python2.6
sounds trying on xapian-core, isn't right place.
- Get link
- X
- Other Apps
Comments
Post a Comment