This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

finding libgcj


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







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]