This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error while loading shared libraries.
- From: Arturas Moskvinas <arturas dot moskvinas at gmail dot com>
- To: qihe at tju dot edu dot cn
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 12 Aug 2005 19:06:35 +0300
- Subject: Re: Error while loading shared libraries.
- References: <323854525.29390@tju.edu.cn>
> Sir:
> I compiled a helloworld program using gcj like this:
> gcj -o hello hello.class --main=hello
> The compiling succeeded and no warning and error generated.But it went wrong
> when I run the executable, the error it presented is:
> $ ./hello
> ./hello: error while loading shared libraries: libgcj.so.6: cannot open
> shared object file: No such file or directory
First search your system for libgcj.so.6 file, if there is no, than i
think you do not have libgcj libraries installed. There is different
ways to install this library on OS, it depends on distribution. For
example on debian it might be "apt-get install libgcj", fedora core
"yum install libgcj" and so on... Try searching your operating system
vendors site for libgcj package...
Arturas M.