[Moin-user] xapian installation
Olivier Lauret
olivier.lauret at googlemail.com
Mon Jan 5 19:20:21 EST 2009
Hello,
I'd like know if someone can help me with a xapian installation. I'm on a
server where I don't have root access.
I've install the wiki under $HOME/mywiki and installed xapian under
$HOME/lib/python2.4/site-packages (but also under $HOME and $HOME/xapian - I
know that once was enough but I was trying to debug the problem.. apparently
in a bad way!). However, when I'm starting apache, I get the following error
in the apache logs:
ERROR MoinMoin.config.multiconfig:334 xapian_search was auto-disabled
because python-xapian is not installed
[/home/eohwiki/lib/python2.4/site-packages/_xapian.so: undefined symbol:
PyUnicodeUCS4_EncodeUTF8]
In google, I found that this error can be because python can't find the
"unicodeobject.h" file. On my system, I have it under:
/usr/include/python2.4/unicodeobject.h
/usr/local/include/python2.5/unicodeobject.h
/usr/local/include/python2.6/unicodeobject.h
/usr/local/include/python3.0/unicodeobject.h
I've tried to include the 2 first paths in the moin.wsgi (sys.path.insert(0,
"/usr/include/python2.4") for instance) but it didn't help. Should I set the
path somewhere else?
In Python command line (version 2.4), I can execute:
import sys
sys.path.insert(0, "/home/USER/lib/python2.4/site-packages")
import xapian
and the import of xapian is successful.
When I show the page SystemInfo, I can see that Python Version is 2.5.2 and
that Xapian is disabled.
I've executed "moin --config-dir=/where/your/configdir/is
--wiki-url=wiki-url/ index build --mode=add" successfully and set
xapian_search and xapian_stemming to True.
Any idea? Need any more details?
Regards,
Olivier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20090106/7d4ab72e/attachment.html>
More information about the Moin-user
mailing list