pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Linux32 Emulation on NetBSD 4.0 AMD64



On Sat, 8 Mar 2008 21:01:17 -0500
Taylor Venable <taylor%metasyntax.net@localhost> wrote:

> Hi all,
> 
> I'm having a problem running Linux 32-bit binaries in the AMD64 port
> of NetBSD 4.0 - I'm not sure if this configuration is supported or
> not but I figured since pkgsrc didn't stop me, maybe they would run.
> The problem crops up anytime I try to actually run the executable:
> 
>  469 [ taylor @ lionel ] : ~ > opera 
> /usr/pkg/emul/linux32/bin/bash: 1: Syntax error: word unexpected
> (expecting ")")
> 
> 470 [ taylor @ lionel ] : ~ > firefox-linux 
> /usr/pkg/lib/firefox-linux/firefox-bin: 1: Syntax error: "("
> unexpected
> 
> And the same when trying to install the Linux JRE:
> 
> ===> Extracting for sun-jre6-6.0.1nb2
> ./install.sfx.17257: 1: Syntax error: "(" unexpected
> 
> I'm using pkgsrc 2007Q4, and I could admittedly just upgrade to the
> current CVS, but I really wanted to know if what I was trying to do
> *should* work, or if Linux32 emulation isn't working on the AMD64
> port.  Thanks.
> 
You have to have this options set in your kernel config file:

options         COMPAT_LINUX
options         COMPAT_LINUX32  # req. COMPAT_LINUX and COMPAT_NETBSD32
options         EXEC_ELF32

Of course, I have them set and acroread still doesn't work for me, but
at least I get a different error...

                --Steve Bellovin, http://www.cs.columbia.edu/~smb


Home | Main Index | Thread Index | Old Index