On Mon, 10 Aug 2009, KK wrote:

Thank you Andi.
I'm going through the link you mentioned.
One question: i already have open-jdk, do i still need to install
sun-java5-jdk ?

No, open-jdk 6 or 7 should work just fine.

Andi..

or open-jdk will do the job as well? if yes do i need to make some
changes/tweaks before following those steps?

Thanks,
KK

On Mon, Aug 10, 2009 at 2:50 PM, Andi Vajda <va...@apache.org> wrote:


On Aug 10, 2009, at 10:54, KK <dioxide.softw...@gmail.com> wrote:

 hi all,
Can someone please help me fixing the issue. before that these are the
vesion of tools i'm using,
 pylucene version: PyLucene-2.2.0-1
 python: Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
 gcc: gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)

I've been trying to install pylucene on linux for last couple of days, and
i must say its a horrible exp...after googling a lot i'm kinda lost...no
specific information is available to fix the issue. I followed the basic
installation instruction, which in esssence boils down to copying some
files
from the python subdirectory of pylucene to the site-specific sub
directory
under /usr/loca/lib/python2.6...but after copying the contents of gcj/ and
doing a ldconfig gives error even for apt-get like this
kk-laptop$ sudo apt-get update
[sudo] password for kk:
apt-get: /usr/local/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found
(required by apt-get)
apt-get: /usr/local/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found
(required by /usr/lib/libapt-pkg-libc6.9-6.so.4.7)
then i tried removing the those two .so files copied to the /usr/local/lib
directory as mentioned in the README and after running sudo ldconfig,
apt-get issue was got resolved,

i also refered to this ubuntu thread for installation but of no help,
 http://ubuntuforums.org/showthread.php?t=593327

starting python and then trying to import the module gives this error:
kk-laptop$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

 import PyLucene

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named PyLucene



and the output of sys.path is this:

 import sys
print sys.path

['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages/PIL',
'/usr/lib/python2.6/dist-packages/gst-0.10',
'/var/lib/python-support/python2.6',
'/usr/lib/python2.6/dist-packages/gtk-2.0',
'/var/lib/python-support/python2.6/gtk-2.0',
'/usr/local/lib/python2.6/dist-packages']



can someone please help me fixing this issue. i'm completely lost/stuck at
this issue. seems like i'm an idiot, not able to install pylucne (which is
essentially copying some files)
thank you very much.


PyLucene with gcj was discontinued last year. Use PyLucene with jcc
instead.
 http://lucene.apache.org/pylucene
has installation instructions and docs.

Andi..



--kk



Reply via email to