Subject: Re: PDF Reader (or, how does OS emulation work?)
To: Trevin Beattie <trevin@xmission.com>
From: Rene Hexel <rh@idle.trapdoor.vip.at>
List: netbsd-help
Date: 09/12/1999 07:46:14
Trevin Beattie wrote:
> The problem with the Linux program is that when I try to run the binary, it
> tells me "acroread: can't load library 'libreadcore.so'".
Acrobat reader comes with a wrapper script that sets up LD_LIBRARY_PATH.
This script has to be adapted to NetBSD. You don't have to do this by hand,
though, since there is an "acroread" package for NetBSD.
> But ldd claims that acroread is not a dynamic executable.
You probably used NetBSD's 'ldd', which is the wrong 'ldd' for Linux
programs. With Linux' 'ldd' you will get:
> setenv LD_LIBRARY_PATH /usr/pkg/Acrobat4/Reader/intellinux/lib:/usr/i486-linux-libc5/lib
> /emul/linux/usr/bin/ldd /usr/pkg/Acrobat4/Reader/intellinux/bin/acroread
libreadcore.so => /usr/pkg/Acrobat4/Reader/intellinux/lib/libreadcore.so (0x4000b000)
libAGM.so => /usr/pkg/Acrobat4/Reader/intellinux/lib/libAGM.so (0x401c5000)
libCoolType.so => /usr/pkg/Acrobat4/Reader/intellinux/lib/libCoolType.so (0x402e5000)
libICC.so => /usr/pkg/Acrobat4/Reader/intellinux/lib/libICC.so (0x40516000)
libXt.so.6 => /usr/i486-linux-libc5/lib/libXt.so.6 (0x405bd000)
libXext.so.6 => /usr/i486-linux-libc5/lib/libXext.so.6 (0x405ff000)
libX11.so.6 => /usr/i486-linux-libc5/lib/libX11.so.6 (0x4060c000)
libm.so.5 => /usr/i486-linux-libc5/lib/libm.so.5 (0x406ad000)
libdl.so.1 => /usr/i486-linux-libc5/lib/libdl.so.1 (0x406b6000)
libc.so.5 => /usr/i486-linux-libc5/lib/libc.so.5 (0x406b9000)
libSM.so.6 => /usr/i486-linux-libc5/lib/libSM.so.6 (0x40775000)
libICE.so.6 => /usr/i486-linux-libc5/lib/libICE.so.6 (0x4077e000)
> I installed the Linux compatibility library from NetBSD's package
> collection and ran ldconfig with all the new library directories,
> but acroread still couldn't load the required libraries.
Have you tried using the 'acroread' package from the NetBSD package
collection? This should work find if you run the
'/usr/pkg/bin/acroread4' wrapper script installed with the package.
Cheers
,
Rene