From owner-freebsd-questions Mon May 1 13:33:58 2000 Delivered-To: freebsd-questions@freebsd.org Received: from tetron02.tetronsoftware.com (ftp.tetronsoftware.com [208.236.46.106]) by hub.freebsd.org (Postfix) with ESMTP id 1E7F537C1BB for ; Mon, 1 May 2000 13:26:05 -0700 (PDT) (envelope-from zeus@tetronsoftware.com) Received: from tetron02.tetronsoftware.com (tetron02.tetronsoftware.com [208.236.46.106]) by tetron02.tetronsoftware.com (8.9.3/8.9.3) with ESMTP id PAA03939; Mon, 1 May 2000 15:24:24 -0500 (CDT) (envelope-from zeus@tetronsoftware.com) Date: Mon, 1 May 2000 15:24:23 -0500 (CDT) From: Gene Harris To: Glenn Johnson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Compiling under Linux emulation In-Reply-To: <20000501144625.A12126@node1.cluster.srrc.usda.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 1 May 2000, Glenn Johnson wrote: > On Mon, May 01, 2000 at 10:00:11AM -0500, Gene Harris wrote: > > > I am attempting to compile xfstt under Linux emualtion for testing > > purposes. Can someone point me in the right direction for setting the > > path and environment variables? I am trying to produce a pure Linux > > executable to run in compatibility mode. > > Assuming you have the linux_base and linux_devtools ports installed, > from your login prompt type: '/compat/linux/bin/bash'. This will switch > you to a Linux shell and subsequent calls to binaries will actually > run from /compat/linux/. Although I believe that if some binary is not > present under /compat/linux then it will call the FreeBSD utility which > may not work. Thanks Glen, I have been able to successfully compile small programs where I have explicitly specified paths for linking, etc. My problem has been using Linux's gmake to compile larger projects. Between what you just specified and a little sleuthing on Linux environment variables, I've been able to jury rig a login that sets up everything to point to /compat/linux... Thanks again, as you gave me the 'missing link'. Gene > > Hope that helps. > > -- > Glenn Johnson > USDA, ARS, SRRC Phone: (504) 286-4252 > New Orleans, LA 70124 e-mail: gjohnson@nola.srrc.usda.gov > Tetron Software, LLC http://www.tetronsoftware.com FreeBSD Apache PostgreSQL Oracle 8/8i Windows 95/98/NT Visual C Visual Basic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message