From owner-freebsd-questions Fri May 16 05:19:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA24913 for questions-outgoing; Fri, 16 May 1997 05:19:05 -0700 (PDT) Received: from horton.iaces.com (root@horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA24907 for ; Fri, 16 May 1997 05:19:03 -0700 (PDT) Received: (from proot@localhost) by horton.iaces.com (8.8.5/8.8.4) id HAA19906; Fri, 16 May 1997 07:18:47 -0500 (CDT) From: "Paul T. Root" Message-Id: <199705161218.HAA19906@horton.iaces.com> Subject: Re: FreeBSD 2.2.1 support for Linux binaries - how to? To: r.seichter@isc-inf.com (Ralph Seichter) Date: Fri, 16 May 1997 07:18:47 -0500 (CDT) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <00256499.003451A1.00@[194.163.9.15]> from Ralph Seichter at "May 16, 97 09:33:22 am" X-Organization: !nterprise Networking Services - ACES X-Phone: (612) 663-1979 X-Fax: (612) 663-8030 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 200 S. 5th St., Suite 1100 X-Address: Minneapolis, MN 55402 X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In a previous message, Ralph Seichter said: > > > > > After using NetBSD for quite a while, I've now freshly set up FreeBSD > 2.2.1. One of the reasons for migrating to FreeBSD was the support > for Linux binaries, but now I'm having trouble using this feature. > > When the X11 and fvwm2 setup looked ok to me, I installed the 'doom' > package off the distribution CDROM, which added some Linux libs. I > then added an ldconfig entry for the directory /compat/linux/lib, but > doom won't run. Executing doom.sh from an xterm (with bash) results > only in what looks like a dump of parts of 'xdoom' being printed to > the xterm window. > > Did I forget something vital for FreeBSD's Linux support? Could my > self-compiled kernel be misconfigured? > > Your help is appreciated. If there's a FAQ I missed, please tell me so. > > -Ralph- Probably. Did you read the handbook sections on Linux? I just did this last week and brought up doom just to test, then AcroRead, then StarOffice. All worked just fine. In a nutshell, here's what you do: 1) edit /etc/sysconfig to change LINUX=NO to LINUX=YES This will run the program 'linux', which loads the linux compatability kernel module. You can confirm it's there with modstat. 2) Add the linux library package. (packages/emulation). 3) That's it. Run xdoom. -- Mathematics deals exclusively with the relations of concepts to each other without consideration of their relation to experience. -- Albert Einstein