Hello Garrett:
Thanks again for the tips so far.
I've gotten gcc-4.0 installed (into
/home/jrobinson/local), and apr, apr-utils, and
apr-iconv installed in /home/jrobinson/local (using
--with-apr=/home/jrobinson/local
--enable-experimental-libtool
--prefix=/home/jrobinson/local),
and I've added /home/jrobinson/local/bin to my PATH,
and /home/jrobinson/local/lib to my LD_LIBRARY_PATH.
On one machine, I get complaints that there's no
javac:
...
javac -classpath ./lib/lucene-1.4.3.jar -d src
src/org/apache/lucene4c/QueryParserHack.java
make[1]: javac: Command not found
make[1]: ***
[src/org/apache/lucene4c/QueryParserHack.class] Error
127
make[1]: Leaving directory
`/home/jrobinson/src/lucene4c-svn/lucene4c'
make: *** [build] Error 2
On another, it doesn't seem to set the TAR location
right, and I get warnings about aclocal.m4:
cd lucene4c && /bin/sh bootstrap && /bin/sh configure
--with-apr=/home/jrobinson/local
--prefix=/home/jrobinson/local && make
Remember to add `AC_PROG_LIBTOOL' to `configure.in'.
You should update your `aclocal.m4' by running
aclocal.
Putting files in AC_CONFIG_AUX_DIR, `config'.
configure: creating config.nice
checking for a BSD-compatible install...
/usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler...
yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none
needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o
together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler...
yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcj... gcj
checking dependency style of gcj... gcc3
checking for gcjh... gcjh
checking for fastjar... no
checking for mkdir... mkdir
checking for find... find
checking for sed... sed
checking for xargs... xargs
checking for rm... rm
checking for JNI_CreateJavaVM in -lgcj... yes
configure: Apache Portable Runtime (APR) library
configuration
checking for APR... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
make[1]: Entering directory
`/home/jrobinson/src/lucene4c-svn/lucene4c'
xvf ./lib/lucene-1.4.3.jar
make[1]: xvf: Command not found
Both machines are running FC1.
More tips are welcome - specifically,
1) where should I get javac from (I don't typically do
java), and
2) how should I resolve the other machine not setting
the tar location right?
Thanks again!
jrobinson
--- Garrett Rooney <rooneg@electricjellyfish.net>
wrote:
> J Robinson wrote:
> > Hello Garrett:
> >
> > Thanks for the tips. Am working on getting a
> build
> > going.
> >
> > Q: Why is JCG required? I thought this was a C
> > implementation?
>
> While the web page hasn't been updated to indicate
> this yet, we recently
> moved from a full C implementation to a C wrapper on
> top of a GCJ
> compiled version of the Java implementation of
> Lucene. The C
> implementation was showing signs of taking way too
> long to complete, and
> using GCJ has allowed us to progress much faster.
>
> -garrett
>
>
__________________________________
Discover Yahoo!
Stay in touch with email, IM, photo sharing and more. Check it out!
http://discover.yahoo.com/stayintouch.html