Date: Thu, 30 Aug 2001 22:34:43 -0500 From: GB Clark II <gclarkii@vsservices.com> To: Edwin Groothuis <edwin@mavetju.org> Cc: freebsd-questions@freebsd.org Subject: Re: Linux compatibility problem. Message-ID: <01083022344306.44450@prime.vsservices.com> In-Reply-To: <20010831121657.S29422@k7.mavetju.org> References: <20010831095244.N1562@freebsd06.udt> <20010831121657.S29422@k7.mavetju.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 30 August 2001 21:16, you wrote: > On Fri, Aug 31, 2001 at 09:52:44AM +0800, Trent Nelson wrote: > > If I've invoked /compat/linux/bin/bash and attempt to run a shell > > script that has "#!/bin/sh" as its first line, the FreeBSD /bin/sh > > seems to get called as the interpreter - as opposed to > > /compat/linux/bin/sh. Is this correct? > > Yups. Shell scripts are not linux-programs :-) Nope. When you run the linux shell you get the linux paths from root. Create a shell script to run uname -a and then run it from inside of the linux shell, you'll get the linux uname just fine. Or you should.... > > This is breaking a Linux installation script I'm working with as its > > doing a `uname -r' and getting "4.3-RELEASE" instead of "2.2.14". > > I'm invoking the /compat/linux/bin/bash shell in this instance and > > working with that. > > Put /usr/compat/linux/bin as first line in your PATH and this should > solve it. Same for /usr/compat/linux/sbin, usr/bin etc. > > [~] edwin@k7>export PATH=/usr/compat/linux/bin:$PATH > [~] edwin@k7>uname -a > Linux k7.mavetju.org 2.2.12 FreeBSD 4.2-RELEASE #7: Sun Aug 19 21:49:05 EST > 2001 edwin@k i386 unknown > [~] edwin@k7>uname -r > 2.2.12 > > > Edwin You should not need to do this! I get 2.2.12 WITHOUT having the linux compat in the my path. Looks like something is broken somewhere...:( This is with linux_base-6.1 from ports. GB -- GB Clark II | Roaming FreeBSD Admin gclarkii@VSServices.COM | General Geek CTHULU for President - Why choose the lesser of two evils? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01083022344306.44450>