From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 20:28:31 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B10D106564A for ; Thu, 7 Aug 2008 20:28:31 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id D03988FC17 for ; Thu, 7 Aug 2008 20:28:30 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.2) with ESMTP id m77KSS5e045267 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 7 Aug 2008 15:28:28 -0500 (CDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.2/Submit) id m77KSR9B045265; Thu, 7 Aug 2008 15:28:27 -0500 (CDT) (envelope-from dan) Date: Thu, 7 Aug 2008 15:28:27 -0500 From: Dan Nelson To: Maxim Khitrov Message-ID: <20080807202827.GA68181@dan.emsphone.com> References: <26ddd1750808071055i2b9976b3i4f347407d94a0813@mail.gmail.com> <489B3909.6080702@FreeBSD.org> <26ddd1750808071107r311c8f16hdb2982bab7291ac2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26ddd1750808071107r311c8f16hdb2982bab7291ac2@mail.gmail.com> X-OS: FreeBSD 7.0-STABLE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Kris Kennaway , FreeBSD Questions Subject: Re: Linking amd64 binary with a 32-bit linux library 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, 07 Aug 2008 20:28:31 -0000 In the last episode (Aug 07), Maxim Khitrov said: > On Thu, Aug 7, 2008 at 2:03 PM, Kris Kennaway wrote: > > Maxim Khitrov wrote: > >> I take it that this happens because libmat.so is a linux binary, > >> but is there any way to do what I'm after? > > > > You can't mix and match Linux and FreeBSD code in the same binary. > > You will have to make a completely Linux binary, either by > > compiling on a Linux system, or by installing a Linux toolchain > > into a chroot and building there. > > I thought so. In that case, if I need to have this library loaded by > mod_ruby, and mod_ruby loaded by apache, I take it that I will have > to recompile all of these as linux binaries if I want to interface > with matlab? I guess I should have thought about this first. :-\ You'll have to build a Linux ruby, but you can use FastCGI (or an equivalent system) to run your CGIs in a separate process, so you can still run a native apache. -- Dan Nelson dnelson@allantgroup.com