ports/128311: textproc/py-lucene: Shared object "libjava.so" not found
Julien Cigar
jcigar at ulb.ac.be
Thu Oct 23 10:30:02 UTC 2008
>Number: 128311
>Category: ports
>Synopsis: textproc/py-lucene: Shared object "libjava.so" not found
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 23 10:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Julien Cigar
>Release: 7.0-RELEASE
>Organization:
ULB
>Environment:
FreeBSD bccm-it.vub.ac.be 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #2: Wed Sep 10 09:56:56 CEST 2008 root at bccm-it.vub.ac.be:/usr/obj/usr/src/sys/CUSTOM i386
>Description:
Hello,
It seems that java/jdk1(5|6) forget to add some paths to the shared library search paths (?), so when you build the port and try to import lucene it says that a shared object is not found :
jcigar at bccm-it ~ % python
Python 2.5.2 (r252:60911, Sep 9 2008, 09:50:48)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd7
Type "help", "copyright", "credits" or "license" for more information.
>How-To-Repeat:
Build the port and >>> import lucene
>Fix:
To fix the problem I created a file /usr/local/libdata/ldconfig/jdk1.5.0 with the following:
jcigar at bccm-it ~ % cat /usr/local/libdata/ldconfig/jdk1.5.0
/usr/local/jdk1.5.0/jre/lib/i386
/usr/local/jdk1.5.0/jre/lib/i386/server
/usr/local/jdk1.5.0/jre/lib/i386/client
then sudo /etc/rc.d/ldconfig restart
>Release-Note:
>Audit-Trail:
>Unformatted:
>>> import lucene
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.5/site-packages/lucene-2.3.2-py2.5-freebsd-7.0-RELEASE-p4-i386.egg/lucene/__init__.py", line 2, in <module>
import os, _lucene
ImportError: Shared object "libjava.so" not found, required by "_lucene.so"
>>>
More information about the freebsd-ports-bugs
mailing list