* can't find shared libraries in gdb
@ 2005-12-19 17:35 yinglcs
2005-12-19 17:51 ` Daniel Jacobowitz
2005-12-19 22:12 ` Eli Zaretskii
0 siblings, 2 replies; 3+ messages in thread
From: yinglcs @ 2005-12-19 17:35 UTC (permalink / raw)
To: gdb
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*
________________________________________________________________________
Check Out the new free AIM(R) Mail -- 2 GB of storage and
industry-leading spam and email virus protection.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't find shared libraries in gdb
2005-12-19 17:35 can't find shared libraries in gdb yinglcs
@ 2005-12-19 17:51 ` Daniel Jacobowitz
2005-12-19 22:12 ` Eli Zaretskii
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-12-19 17:51 UTC (permalink / raw)
To: yinglcs; +Cc: gdb
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: can't find shared libraries in gdb
2005-12-19 17:35 can't find shared libraries in gdb yinglcs
2005-12-19 17:51 ` Daniel Jacobowitz
@ 2005-12-19 22:12 ` Eli Zaretskii
1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2005-12-19 22:12 UTC (permalink / raw)
To: yinglcs; +Cc: gdb
> Date: Mon, 19 Dec 2005 12:35:41 -0500
> From: yinglcs@aim.com
>
> 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
What OS is that, what version of GDB, and how it was configured in
terms of host and target? In short, what does GDB display when you
start it?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-19 22:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-19 17:35 can't find shared libraries in gdb yinglcs
2005-12-19 17:51 ` Daniel Jacobowitz
2005-12-19 22:12 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox