Re: [chandler-dev] cannot build external on FreeBSD 8.1-RELEASE
Andi Vajda <vajda-6zGkXsw2EZWGJGYlWa3Ukdi2O/[email protected]> Mon, 20 Sep 2010 21:06:44 -0700 (PDT)
| Newsgroups | gmane.org.osaf.devel |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --4648585628655550464-47032641-1285042010=:52957 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable On Mon, 20 Sep 2010, William Vining wrote: > I have tried this, but with no luck. I'm not sure that this is the > path it is searching at this point. Any other suggestions? You can also try the same path trick by setting the LD_LIBRARY_PATH=20 environment variable to debug this. Be sure that it's trying to load the=20 libraries you think it's loading. Are you sure your chandler build is 64-bit, for example ? Are you sure you have the libraries not found=20 installed ? Are you sure all the libraries they depend on are also installed ? (use 'ldd' or the freebsd equivalent (otool on Mac, for examp= le)=20 to list a shared library's dependencies). Andi.. > > Thanks, > Will > > On Mon, Sep 20, 2010 at 9:36 AM, Andi Vajda <vajda-6zGkXsw2EZWGJGYlWa3Ukdi2O/[email protected]> w= rote: >> >> 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-RE= LEASE-amd64.egg >>> Processing dependencies for JCC=3D=3D1.8 >>> Finished processing dependencies for JCC=3D=3D1.8 >>> gmake -C /home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418 \ >>> =A0 =A0 =A0 =A0 =A0 PYTHON=3D"python" \ >>> =A0 =A0 =A0 =A0 =A0 ANT=3Dant \ >>> =A0 =A0 =A0 =A0 =A0 JCC=3D"python -m jcc.__init__" \ >>> =A0 =A0 =A0 =A0 =A0 NUM_FILES=3D \ >>> =A0 =A0 =A0 =A0 =A0 DEBUG=3D0 \ >>> =A0 =A0 =A0 =A0 compile install >>> gmake[2]: Entering directory >>> `/usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418' >>> ant -Dlucene.dir=3Dlucene-java-2.3.1 >>> Buildfile: build.xml >>> >>> compile: >>> =A0 [mkdir] Created dir: >>> >>> /usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418/build/= classes >>> =A0 [javac] Compiling 25 source files to >>> >>> /usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418/build/= classes >>> =A0 [javac] Note: >>> >>> /usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418/java/o= rg/osafoundation/lucene/store/PythonDirectory.java >>> uses or overrides a deprecated API. >>> =A0 [javac] Note: Recompile with -Xlint:deprecation for details. >>> >>> jar: >>> =A0 [mkdir] Created dir: >>> /usr/home/khan/chandler/external/PyLucene/PyLucene-2.3.1-3-418/build/= jar >>> =A0 =A0 [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=3D"" 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.ja= r >>> --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 --mappin= g >>> 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 --file= s >>> --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/PyLucen= e' >>> gmake: *** [PyLucene] Error 2 >>> ------------------ >>> I have added this to >>> chandler/external/PyLucene/PyLucene-2.3.1-3-418/jcc/config.py under >>> LFLAGS >>> 'freebsd8' =3D ['-L/usr/local/jdk1.6.0/jre/lib/amd64', '-ljava'] >> >> The current version of JCC has this entry for LFLAGS for freebsd7 [1]: >> >> =A0 =A0'freebsd7': ['-L%(freebsd7)s/jre/lib/i386' %(JDK), '-ljava', '-= lverify', >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 '-L%(freebsd7)s/jre/lib/i386/client' %= (JDK), '-ljvm', >> >> '-Wl,-rpath=3D%(freebsd7)s/jre/lib/i386:%(freebsd7)s/jre/lib/i386/clie= nt' >> %(JDK)], >> >> The -Wl,-rpath setting should help the dynamic linker locate libjava.s= o at >> runtime. The JDK setting is the root of your JDK install. From this, y= ou >> 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 >> > --4648585628655550464-47032641-1285042010=:52957 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Open Source Applications Foundation "chandler-dev" mailing list http://lists.osafoundation.org/mailman/listinfo/chandler-dev --4648585628655550464-47032641-1285042010=:52957--