This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error while loading shared libraries.


> 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.


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