Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jun 2002 17:56:03 -0700
From:      Andrew Stuart <elitetek@tekrealm.net>
To:        Vinod <geekvinod@yahoo.com>
Cc:        freebsd-newbies@freebsd.org
Subject:   Re: ELF binary type "0" not known
Message-ID:  <20020603175603.A88568@freebsd.tekrealm.net>
In-Reply-To: <20020604002153.86732.qmail@web21103.mail.yahoo.com>; from geekvinod@yahoo.com on Mon, Jun 03, 2002 at 05:21:53PM -0700
References:  <20020603160003.A86827@freebsd.tekrealm.net> <20020604002153.86732.qmail@web21103.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
do you have linux_enable="YES" in your rc.conf, and do you have
/usr/ports/emulators/linux_base installed? pkg_info | grep linux 
will tell you. 
you can su to root, and type linux to load the linux support, and
then you can try running your program again.

On Mon, 03 Jun 2002 at 17:21:53 -0700, Vinod wrote:
> 
> i just found this on the web trying to get rid of my
> ELF binary type "0" not known error.
> "First make sure the Linux module is loaded, you can
> do this via kldstat: 
> 
>  helix@subedei (~)% kldstat
>  Id Refs Address    Size     Name
>   1    7 0xc0100000 3155f8   kernel
>   2    1 0xc1174000 8000     linprocfs.ko
>   3    1 0xc117d000 13000    linux.ko
> 
> 
> That last module is what you need. If it's there, the
> next step that you may have to take is running
> brandelf on it, which hardcodes an ABI to use in the
> file should one not be detected: 
> 
>  # brandelf -t Linux (filename)
> 
> 
> It should work now. 
> "
> 
> But my problem is on doing kldstat,i dont have
> linux.ko.and so it doesnt seem to work for me.so
> what's to be done?
> Thanks in advance,
> Vinod
> --- Andrew Stuart <elitetek@tekrealm.net> wrote:
> > brandelf -t Linux binaryname
> > On Mon, 03 Jun 2002 at 15:29:55 -0700, Vinod wrote:
> > > what does the error: ELF binary type "0" not known
> > > mean?
> > > this occured when i was installing a linux binary
> > > distribution on my freebsd box.i know that this
> > binary
> > > works well on freebsd.so is there something i need
> > to
> > > install to correct this?
> > > Thanks in advance,
> > > Vinod
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! - Official partner of 2002 FIFA World Cup
> > > http://fifaworldcup.yahoo.com
> > > 
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-newbies" in the body of
> > the message
> > 
> > -- 
> > Andrew
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-newbies" in the body of
> > the message
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com

-- 
Andrew

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020603175603.A88568>