[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking amd64 binary with a 32-bit linux library
- To: Maxim Khitrov <mkhitrov_(_at_)_gmail_(_dot_)_com>
- Subject: Re: Linking amd64 binary with a 32-bit linux library
- From: Dan Nelson <dnelson_(_at_)_allantgroup_(_dot_)_com>
- Date: Thu, 7 Aug 2008 15:28:27 -0500
- Cc: Kris Kennaway <kris_(_at_)_freebsd_(_dot_)_org>, FreeBSD Questions <freebsd-questions_(_at_)_freebsd_(_dot_)_org>
In the last episode (Aug 07), Maxim Khitrov said:
> On Thu, Aug 7, 2008 at 2:03 PM, Kris Kennaway <kris_(_at_)_freebsd_(_dot_)_org> 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_(_at_)_allantgroup_(_dot_)_com
_______________________________________________
freebsd-questions_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org