thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Doe <jd...@yahoo.com>
Subject Re: Trying to compile thrift...
Date Thu, 23 Jul 2009 10:32:29 GMT
From: Phillip B Oldham <phillip.oldham@gmail.com>
> > checking for Java class org.apache.log4j.Logger... no
> Log4J is now a dependency, but its not stated in the docs that its required.
> It can be obtained from: http://logging.apache.org/log4j/1.2/
> The following worked for me:
> ~# curl {LOG4J_MIRROR}/apache-log4j-1.2.15.tar.gz | tar zx
> ~# mv apache-log4j-1.2.15 $JAVA_LIBS_DIR
> ~# ln $JAVA_LIBS_DIR/apache-log4j-1.2.15 \
>    $JAVA_LIBS_DIR/apache-log4j-latest
> ~# ln $JAVA_LIBS_DIR/apache-log4j-latest/log4j-1.2.15.jar \
>    $JAVA_LIBS_DIR/apache-log4j-latest/log4j.jar
> Then set $LOG4J_HOME to the above folder and add the
> $LOG4J_HOME/log4j.jar to your CLASSPATH.
> ~# cd ~/thrift
> ~# echo "thrift.extra.cpath = $JAVA_LIBS_DIR/apache-log4j-latest/log4j.jar" \
>    > ~/.thrift-build.properties
> ~# ./bootstrap
> ~# ./configure
> ~# make && make install
> 
> $JAVA_LIBS_DIR is where I keep all my java libraries (/opt/java/{pkg}).

I had log4j installed...
$ rpm -ql log4j
/usr/bin/chainsaw
/usr/bin/logfactor5
/usr/lib/gcj/log4j/log4j-1.2.13.jar.db
/usr/lib/gcj/log4j/log4j-1.2.13.jar.so
/usr/share/applications/jpackage-chainsaw.desktop
/usr/share/applications/jpackage-logfactor5.desktop
/usr/share/doc/log4j-1.2.13
/usr/share/doc/log4j-1.2.13/LICENSE.txt
/usr/share/java/log4j-1.2.13.jar
/usr/share/java/log4j.jar
/usr/share/pixmaps/chainsaw.png
/usr/share/pixmaps/logfactor5.png
/usr/share/sgml/log4j
/usr/share/sgml/log4j/catalog
/usr/share/sgml/log4j/log4j.dtd

I tried:
$ echo $LOG4J_HOME 
/usr/share/java
$ echo $CLASSPATH 
/usr/share/java/log4j.jar
$ cat ~/.thrift-build.properties
thrift.extra.cpath = /usr/share/java/log4j.jar 
./cleanup.sh
./bootstrap.sh
./configure...
=> checking for Java class org.apache.log4j.Logger... no

BTW, I also have 'checking for Java class org.apache.commons.lang.builder.HashCodeBuilder...
no'...
I guess I need it too...

Thx,
JD


      

Mime
View raw message