finding libgcj

George Lawton gwlawton@email.msn.com
Sat Apr 1 00:00:00 GMT 2000


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /