Vladimir Gekht wrote:
> 
>  Hi,
> 
> I'm porting some application that I developed (and successfully debugged with gdb)
> under Linux Red Hat 6.2
> 
> to Red Hat 7.2 . My executable file depends on number of libXXXX.so shared
> libraries.
> 
> The problem is as follows:
> 
> My program is running, but when trying to debug I get the message from gdb as
> follows:
> 
> " error while loading shared libraries: <libXXX.so>: cannot open shared object
> file: no such file or directory" ,
> 
> in spite of the fact that both PATH and LD_LIBRARY_PATH are OK, even after running
> "set solib-search-path"

If the shared library was opened with an absolute path, you need to 'set
solib-absolute-prefix' to something like /usr/lib.  (solib-search-path is for shared
libraries opened with a relative path.)

-- 
Orjan Friberg
Axis Communications AB

_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to