Hi Marcel, Thank you very much for your message. Sorry if I didn't answer sooner, but I wanted to try many things before answering back.
I've tried again (and again [?]) what you did, which is almost what I did but
I still have the same problem:
ERROR MoinMoin.config.multiconfig:334 xapian_search was auto-disabled
because python-xapian is not installed
[/home/eohwiki/lib/python2.5/_xapian.so: undefined symbol:
PyUnicodeUCS4_EncodeUTF8].
It seems indeed related to the python version, which is by default 2.4 on my
server, but the wiki (reinstalled it) and the wsgi are installed using 2.5.
When installing the xapian bindings, I can see that it is checking for the
version of python and finds 2.4, but using the option
PYTHON_LIB=$HOME/lib/python2.5, it puts the xapian.py file under
$HOME/bin/python2.5.
When I'm in Python2.5 and do an import xapian, I get the same error message:
>>> import xapian
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/eohwiki/lib/python2.5/xapian.py", line 6, in <module>
import _xapian
ImportError: ./_xapian.so: undefined symbol: PyUnicodeUCS4_EncodeUTF8
When I'm in Python (therefore 2.4) and do an import xapian, it's working
fine.
The command "grep Py_UNICODE_SIZE /usr/local/include/python2.5/pyconfig.h"
give : #define Py_UNICODE_SIZE 2
The command "grep Py_UNICODE_SIZE /usr/include/python2.4/pyconfig.h" give
nothing.
Any idea how I could install xapian-bindings using a specific version of
python?
Regards,
Olivier
*************************************************
Date: Tue, 06 Jan 2009 11:42:41 +0100
From: "[email protected]" <[email protected]>
Subject: Re: [Moin-user] xapian installation
To: moin-user List <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-15
Olivier Lauret schrieb:
> 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 did also a Xapian installation without root access.
1. Python Installation 2.5 (but also works with 2.4) from the Source!
2. xapian-core
* ./configure --prefix /path/user/lib/xapian/
* make
* make install
3. xapian-omega
* ./configure --prefix /path/user/lib/xapian/
XAPIAN_CONFIG=/path/user/lib/xapian/bin/xapian-config
* make
* make install
4. xapian-bindings
* ./configure --prefix /path/user/lib/xapian/
XAPIAN_CONFIG=/path/user/lib/xapian/bin/xapian-config
* make
* make install
btw. /path/user should be your $HOME Directory.
5. MoinMoin
* python setup.py install --prefix=/path/user/local
Be also careful if you say Python Version is 2.5.2 running; but you
installed your Xapian under $HOME/lib/python2.4/site-packages. This
can't work!
bye
Marcel
<<328.png>>
------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________ Moin-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/moin-user
