cannot open shared object file

Alexandre Oliva
Wed Sep 16 21:52:00 GMT 1998

Dave P <> writes:

> /usr/local/src/egcs1.1b/configure --prefix=/usr/local/egcs-1.1b
> --enable-shared

> ./testing: error in loading shared libraries
> cannot open shared object file: No such file or
> directory

> Should I add my /usr/local/egcs-1.1b/lib to the /etc/

Yep.  Another option is to add `-R/usr/local/egcs-1.1b/lib' to the
link specs, but this will hard-code the pathname of the library into
every program, which you might prefer not to do.  On Linux, 
is the way to go.

Alexandre Oliva
Universidade Estadual de Campinas, SP, Brasil

More information about the Gcc mailing list