Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: yinglcs@aim.com
Cc: gdb@sources.redhat.com
Subject: Re: can't find shared libraries in gdb
Date: Mon, 19 Dec 2005 17:51:00 -0000	[thread overview]
Message-ID: <20051219175145.GA26309@nevyn.them.org> (raw)
In-Reply-To: <8C7D2D9C4891CA2-1834-6F6C@MBLK-M10.sysops.aol.com>

On Mon, Dec 19, 2005 at 12:35:41PM -0500, yinglcs@aim.com wrote:
> Hi,
> I run my program under Gdb. But i get the following error saying it 
> can't find the shared libraries:
> (gdb) run
> Starting program: /home/yinglcs/src/firefox1.5/dist/bin/firefox-bin
> /home/yinglcs/src/firefox1.5/dist/bin/firefox-bin: error while loading 
> shared libraries: libmozjs.so: cannot open shared object file: No such 
> file or directory
> 
> But I check there is a soft link in the same directory as the 
> executable and it points to a vaild file.
> Can you please tell me how to fix this problem so that I can run my 
> problem under gdb?
> 
> [yinglcs@localhost bin]$ ls -la libmozjs.so
> lrwxrwxrwx  1 yinglcs yinglcs 24 Dec 15 09:47 libmozjs.so -> 
> ../../js/src/libmozjs.so*
> 
> [yinglcs@localhost bin]$ ls -la ../../js/src/libmozjs.so
> -rwxrwxr-x  1 yinglcs yinglcs 1845285 Dec 15 09:47 
> ../../js/src/libmozjs.so*

Does it run outside of GDB?

If so, it is likely that your shell startup files (.profile, .bashrc,
et cetera) are clobbering your LD_LIBRARY_PATH settings.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


  reply	other threads:[~2005-12-19 17:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-19 17:35 yinglcs
2005-12-19 17:51 ` Daniel Jacobowitz [this message]
2005-12-19 22:12 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051219175145.GA26309@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=yinglcs@aim.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox