I was going going to create a New Ticket on BLFS Trac,
but reading further on www.linuxfromscratch.org, it
seems a better place for this would be to post it on
the mailing list, so here goes. Note, it is still in
WikiFormatting.
graphvis-2.8's configure script does not seem to
properly find your Java headers (i.e. jni.h) unless it
is specifically located in your `/usr/include`
directory.
Simply passing configure a CPPFLAGS doesn't seem to do
the trick, as the generated Makefiles still do not
reference the additional include and library
directories passed to it.
A solution that seems to have worked for me is to run
the following in the graphviz build directory (the one
created by the tar command):
{{{
CPPFLAGS="-I$JAVA_HOME/include
-I$JAVA_HOME/include/linux" \
./configure --prefix=/usr &&
for file in $(find ./ -name Makefile); do \
sed -i "s:JAVA_LIBS = :JAVA_LIBS = $JAVA_HOME\/lib:"
$file;
sed -i "s:JAVA_INCLUDES = :JAVA_INCLUDES =
$JAVA_HOME\/lib:" $file;
done &&
make
}}}
And then, as supplied by BLFS (as user ''root''):
{{{
make install
}}}
and optionally
{{{
ln -v -s /usr/share/graphviz/doc \
/usr/share/doc/graphviz-2.8
}}}
'''Note: ''' You must (and already should if you
followed the BLFS instructions for configuring JDK)
have an environment variable JAVA_HOME which
references the prefix for your JDK installation. For
instance, mine is JAVA_HOME=/opt/jdk where /opt/jdk ->
./jdk-precompiled-1.5.0_08
I hope this is all correct and it actually helps.
Please bear in mind that this is my first attempt at
helping anyone with anything Linux-related and also my
first try with the sed command.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page