-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello everyone,
I'm new to the list as well as (Py)Lucene. A couple of days ago I have
installed PyLucene with JCC, so I might bother you with a few questions
in days to come..
Phil Christensen schrieb am 25.10.2007 6:10 Uhr:
> On Oct 24, 2007, at 9:39 PM, Andi Vajda wrote:
>> On Wed, 24 Oct 2007, Phil Christensen wrote:
>>> [EMAIL PROTECTED]:~/PyLucene-2.2.0-1$ sudo make install
>>> [long command line snip]
>>> Traceback (most recent call last):
>>> File "/usr/lib/python2.4/site-packages/jcc/__init__.py", line 27, in ?
>>> from jcc import cpp
>>> File "/usr/lib/python2.4/site-packages/jcc/__init__.py", line 30, in ?
>>> from _jcc import initVM
>>> ImportError: libjava.so: cannot open shared object file: No such file
>>> or directory
>>> make: *** [install] Error 1
>>>
>>> This is happening at the last step of the installation process, when
>>> I'm doing `make install` for the main PyLucene stuff. The previous
>>> compile appears to run properly, and there are no issues during the
>>> compile/installation of JCC.
>>
>> Could it be that sudoing changes the environment you're in for some
>> reason, causing LD_LIBRARY_PATH to no longer be correct ? (unsure
>> myself).
>
> I suspected this as well, and tried it as root, same result. Sorry I
> didn't remove those variables from my example.
When compiling (on Ubuntu 7.10, with Java 1.6 and Python 2.5.1) I had
the same error as Phil initially. For me it went away when I became root
prior to setting LD_LIBRARY_PATH, something like:
$ export LD_LIBRARY_PATH=...
$ make
$ sudo bash
$ (as root) export LD_LIBRARY_PATH=...
$ (as root) make install
$ exit
Hope I am not hijacking your thread here, Phil, but a question that
seems closely related: Am I right in understanding that you have to keep
the LD_LIBRARY_PATH around for running PyLucene with JCC? If I don't put
it somewhere in my .profile or .bashrc, I get the same error about being
unable to open libjava.so whenever I import PyLucene.
Henrik.
________________________________________________________________________
"You like Floyd, don't you, Plato?" asks Floyd.
"Yes," replies the taller robot, "you're the only robot I've ever met
who doesn't call me a nerd."
Floyd smiles.
- Steve Meretzky, Stationfall
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHIF3vzilbKM61BS8RAjQuAJ9bvPLuMNWARUUxH9h7OzNKnaZ6RQCfV3gC
VzGborOl4B7xIcrg1e83rJU=
=BxhC
-----END PGP SIGNATURE-----
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev