From owner-freebsd-questions@FreeBSD.ORG Thu Mar 9 02:32:06 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4FE616A420 for ; Thu, 9 Mar 2006 02:32:06 +0000 (GMT) (envelope-from wcox@xxiii.com) Received: from imf19aec.mail.bellsouth.net (imf19aec.mail.bellsouth.net [205.152.59.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 411B643D46 for ; Thu, 9 Mar 2006 02:32:06 +0000 (GMT) (envelope-from wcox@xxiii.com) Received: from ibm60aec.bellsouth.net ([68.209.177.221]) by imf19aec.mail.bellsouth.net with ESMTP id <20060309023205.HWRA3281.imf19aec.mail.bellsouth.net@ibm60aec.bellsouth.net> for ; Wed, 8 Mar 2006 21:32:05 -0500 Received: from wcox.bellsouth.net ([68.209.177.221]) by ibm60aec.bellsouth.net with ESMTP id <20060309023200.PMTR1931.ibm60aec.bellsouth.net@wcox.bellsouth.net>; Wed, 8 Mar 2006 21:32:00 -0500 Message-Id: <6.2.3.4.2.20060308210423.02e94300@mailsvr.xxiii.com> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 08 Mar 2006 21:32:33 -0500 To: lawrence.petrykanyn@sympatico.ca,freebsd-questions@freebsd.org From: wc_fbsd@xxiii.com In-Reply-To: <440F5AF7.3080608@intersonic.se> References: <440F5AF7.3080608@intersonic.se> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Newbie FreeBSD/Linux Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2006 02:32:06 -0000 At 05:30 PM 3/8/2006, you wrote: >I am a newbie trying to compile the program JACK that is required >for the midi sequencer Rosegarden. This program (JACK) is not >available through the ports collection and is intended for a Linux >system. I am Perhaps I'm not understanding the whole scenario, but are you trying to compile it BSD native, or compile and run it in Linux compatibility mode? If you're trying to use Linux compatibility mode, you need to make sure your session is really running in that mode. It's been a year+ since I tried it, but it wasn't real obvious in the handbook IIRC. You need to get a shell running in Linux mode first; that gets the "union" file system going, so the stuff in /compat/linux is "overlayed" on the root filesystem. The uname command is probably the most simple confirmation, eg: $ uname -a FreeBSD meddle.xxiii.com 5.4-STABLE FreeBSD 5.4-STABLE #8: Tue Jul 26 13:28:17 EDT 2005 $ ls /compat/linux/bin basename date ksh pwd stty bash dd ln rm sync bash2 echo ls rmdir touch chgrp egrep mkdir rpm true chmod false mknod setserial uname chown fgrep mv sh cp grep nice sleep $ /compat/linux/bin/bash bash-2.04$ uname -a Linux meddle.xxiii.com 2.4.2 FreeBSD 5.4-STABLE #8: Tue Jul 26 13:28:17 EDT 2005 Once you have an executable running in compatibility mode (the shell in this case), it will search the directory in /compat/linux first, and failing that look in the real root system. So if you type "make" and the first directory in your path is /usr/bin, it really looks in /compat/linux/usr/bin first, then the real /usr/bin. I doubt the standard Linux mode on FBSD has all the stuff to compile & link native Linux code, however. Hope I'm not re-stating the obvious, but once I figured this out, the compatibility mode made a BUNCH more sense. -Wayne