On Mon, 20 Sep 2010, William Vining wrote:

I have been trying to build chandler on FreeBSD, but I get here and I
cannot figure it out. It looks like it fails because it cannot find
lib java.so. I was hoping some one knows where it is looking or if I
can add to lt path it searches.

Here is the output from the portion that fails:

Installed 
/usr/home/khan/chandler/external/release/JCC-1.8-py2.6-freebsd-8.1-RELEASE-amd64.egg
Processing dependencies for JCC==1.8
Finished processing dependencies for JCC==1.8
gmake -C /home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418 \
           PYTHON="python" \
           ANT=ant \
           JCC="python -m jcc.__init__" \
           NUM_FILES= \
           DEBUG=0 \
         compile install
gmake[2]: Entering directory
`/usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418'
ant -Dlucene.dir=lucene-java-2.3.1
Buildfile: build.xml

compile:
   [mkdir] Created dir:
/usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418/build/classes
   [javac] Compiling 25 source files to
/usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418/build/classes
   [javac] Note:
/usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418/java/org/osafoundation/lucene/store/PythonDirectory.java
uses or overrides a deprecated API.
   [javac] Note: Recompile with -Xlint:deprecation for details.

jar:
   [mkdir] Created dir:
/usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418/build/jar
     [jar] Building jar:
/usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418/build/jar/extensions.jar

BUILD SUCCESSFUL
Total time: 2 seconds
CFLAGS="" python -m jcc.__init__ --jar
lucene-java-2.3.1/build/lucene-core-2.3.1.jar --jar
lucene-java-2.3.1/build/contrib/snowball/lucene-snowball-2.3.1.jar
--jar lucene-java-2.3.1/build/contrib/highlighter/lucene-highlighter-2.3.1.jar
--jar lucene-java-2.3.1/build/contrib/analyzers/lucene-analyzers-2.3.1.jar
--jar lucene-java-2.3.1/build/contrib/regex/lucene-regex-2.3.1.jar
--jar lucene-java-2.3.1/build/contrib/queries/lucene-queries-2.3.1.jar
--jar build/jar/extensions.jar --package java.lang java.lang.System
java.lang.Runtime --package java.util java.text.SimpleDateFormat
--package java.io java.io.StringReader java.io.InputStreamReader
java.io.FileInputStream --exclude org.apache.lucene.queryParser.Token
--exclude org.apache.lucene.queryParser.TokenMgrError --exclude
org.apache.lucene.queryParser.QueryParserTokenManager --exclude
org.apache.lucene.queryParser.ParseException --python lucene --mapping
org.apache.lucene.document.Document
'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping
java.util.Properties
'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
org.apache.lucene.search.Hits 'length:()I'
'doc:(I)Lorg/apache/lucene/document/Document;' --version 2.3.1 --files
--build
/usr/local/bin/python: Shared object "libjava.so" not found, required
by "_jcc.so"
gmake[2]: *** [compile] Error 1
gmake[2]: Leaving directory
`/usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418'
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory `/usr/home/khan/chandler/external/PyLucene'
gmake: *** [PyLucene] Error 2
------------------
I have added this to
chandler/external/PyLucene/PyLucene-2.3.1-3-418/jcc/config.py under
LFLAGS
'freebsd8' = ['-L/usr/local/jdk1.6.0/jre/lib/amd64', '-ljava']

The current version of JCC has this entry for LFLAGS for freebsd7 [1]:

    'freebsd7': ['-L%(freebsd7)s/jre/lib/i386' %(JDK), '-ljava', '-lverify',
                 '-L%(freebsd7)s/jre/lib/i386/client' %(JDK), '-ljvm',
'-Wl,-rpath=%(freebsd7)s/jre/lib/i386:%(freebsd7)s/jre/lib/i386/client' %(JDK)],

The -Wl,-rpath setting should help the dynamic linker locate libjava.so at runtime. The JDK setting is the root of your JDK install. From this, you should heopfully be able to extrapolate what the correct settings for your setup should be.

Andi..

[1] http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc/setup.py


But I cannot tell where this portion of the buid process is looking
for libjava.so, I put coppies in the site-packages directory, but
still no luck. Does anyone have any advice?

Thanks
Will Vining
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to