This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
finding libgcj
- To: <java-discuss at sourceware dot cygnus dot com>
- Subject: finding libgcj
- From: "George Lawton" <gwlawton at email dot msn dot com>
- Date: Wed, 2 Feb 2000 15:58:06 -0500
- Organization: Microsoft Corporation
Hello world
I just built gcc-2.95.2 and libgcj-2.95.1 on Redhat Linux 6.0. Used
--enable-shared
--with-gnu-as
--with-gnu-ld
--enable-threads
gcc installed binaries in /usr/local/bin and libgcj installed libraries in
/usr/local/lib
Then I wrote everyone's favorite HelloWorld class and did
gcj --main=HelloWorld -o HelloWorld HelloWorld.java
./HelloWorld
with the following result:
./HelloWorld: error in loading shared libraries: libgcj.so.o: cannot open
shared object file: No such file or directory
libgcj.so.0 is there (as a link to libgcj.so.0.0.0.) I've tried several
"obvious" things including environmental variables (LD_RUN_PATH,
LD_LIBRARY_PATH) and several different compiler and linker flags but I can't
get HelloWorld to find the library.
If someone has a quick answer, I'd really appreciate it.
George Lawton