Re: linux binary equivalent to ldd?

2004-02-18 Thread Saint Aardvark the Carpeted
Jesse Guardiani disturbed my sleep to write:
> How do I get info similar to what ldd gives out of a linux
> binary? If I run this:
> 
> /usr/compat/linux/usr/bin/ldd /usr/local/lib/RealPlayer8/rpnp.so
> 
> I get this:
> 
> /usr/compat/linux/usr/bin/ldd: /lib/ld-linux.so.2: not found
> ldd: /lib/ld-linux.so.2 $exited with unknown exit code (127)
> Exit 1

Hm...if you've got the Linux compatibility stuff, you should (I think)
have this too.  Try:

locate ld-linux.so.2

On my system, it shows it as being a symlink to
/usr/compat/linux/lib/ld-2.2.4.so.  Assuming it shows up, try

/compat/linux/sbin/ldconfig -p | grep ld-linux

just to confirm that ldd really can't find it.  If it's not listed, try
running:

/compat/linux/sbin/ldconfig 

to update the list of libraries it knows about.

Usually that should be done at boot-time by the /etc/rc script -- have
you got the right option set in /etc/rc.conf?  (linux_enable="YES")

Hope that helps,
Hugh
-- 
Saint Aardvark the Carpeted
[EMAIL PROTECTED]
Because the plural of Anecdote is Myth.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


linux binary equivalent to ldd?

2004-02-17 Thread Jesse Guardiani
How do I run ldd on a linux binary?

But when I run ldd on a linux binary it says:

ldd: /usr/local/lib/RealPlayer8/rpnp.so: not a FreeBSD ELF shared object

How do I get info similar to what ldd gives out of a linux
binary? If I run this:

/usr/compat/linux/usr/bin/ldd /usr/local/lib/RealPlayer8/rpnp.so

I get this:

/usr/compat/linux/usr/bin/ldd: /lib/ld-linux.so.2: not found
ldd: /lib/ld-linux.so.2 $exited with unknown exit code (127)
Exit 1

Thanks!

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"