[Java-gnome-developer] Compiling 0.14.0 on RedHat 7.1
Brought to you by:
afcowie
From: Philip A. C. <the...@be...> - 2001-06-28 04:28:12
|
I'm having trouble compiling gnome-gcj 0.14.0. I'm running RedHat 7.1. I've installed gcc 3.0 in /usr/local/gcc-3.0 and I've exported the LD_LIBRARY_PATH environment variable: [wyvern@red_dragon gnome-gcj-0.14.0]$ echo $LD_LIBRARY_PATH /usr/local/gcc-3.0/lib I've altered PATH so that gcj 3.0 is used: [wyvern@red_dragon gnome-gcj-0.14.0]$ gcj --version 3.0 When running configure, I get the following error: checking version of gcj and gcjh... earlier than 2.96 *** GCJ is too old. 2.96 or later is required. configure: error: GCJ was not found Knowing that I have 2.96 or greater, I copy configure to onfigure_local, and edit it. I take out the portion of the configure file which tests the version of gcj: <BEGIN cut portion of script> else echo $ac_n "checking version of gcj and gcjh""... $ac_c" 1>&6 echo "configure:2044: checking version of gcj and gcjh" >&5 gcj_fullver=`$GCJH --version | head -1 | sed 's/gcjh //'` case "$gcj_fullver" in *experimental*) # Probably 2.96 or later gcj_date=`echo $gcj_fullver | sed 's/(\(.*\) \(.*\) (experimental))/\2/'` echo "$ac_t""2.96 from $gcj_date" 1>&6 if test "20000501" = "" -o "$gcj_date" -ge "20000501"; then : else echo "*** GCJ is too old. A 2.96 snapshot from 20000501 or later is required." { echo "configure: error: GCJ was not found" 1>&2; exit 1; } fi ;; *0.0|*) # Probably 2.95.x or earlier echo "$ac_t""earlier than 2.96" 1>&6 if test "20000501" != ""; then echo "*** GCJ is too old. 2.96 or later is required." { echo "configure: error: GCJ was not found" 1>&2; exit 1; } else : fi ;; esac <END Cut> It gets past the version test (since it no longer exists), but gives me an error linking against libgcj: checking for libgcj library... found in /usr *** I could not compile and/or run a program with GCJ. It may be that *** you haven't set your LD_LIBRARY_PATH. See the file config.log for *** more details. configure: error: libgcj was not found Interesting since I do have LD_LIBRARY_PATH set (see above) and even the version of libgcj which comes with RedHat's bundled gcc 2.96 doesn't reside in /usr. So, I use the command line option --with-libgcj=/usr/local/gcc-3.0/lib Still, even though it uses the correct directory, it still cannot link against libgcj: checking for libgcj library... found in /usr/local/gcc-3.0/lib *** I could not compile and/or run a program with GCJ. It may be that *** you haven't set your LD_LIBRARY_PATH. See the file config.log for *** more details. configure: error: libgcj was not found I would *REALLY* appreciate any help at all in solving this issue. If any other information is needed, please email me and I'll be glad to supply it. Thanks |