From owner-freebsd-mobile Thu Jun 3 5:32:13 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from isds.duke.edu (davinci.isds.duke.edu [152.3.22.1]) by hub.freebsd.org (Postfix) with ESMTP id 13BD514FD1 for ; Thu, 3 Jun 1999 05:32:10 -0700 (PDT) (envelope-from sto@stat.Duke.EDU) Received: from cayenne.isds.duke.edu (cayenne.isds.duke.edu [152.3.22.11]) by isds.duke.edu (8.8.8/8.8.8) with ESMTP id IAA01859; Thu, 3 Jun 1999 08:32:10 -0400 (EDT) Received: (from sto@localhost) by cayenne.isds.duke.edu (8.8.8/8.8.8) id IAA05774; Thu, 3 Jun 1999 08:32:10 -0400 (EDT) Message-ID: <19990603083209.W4332@stat.Duke.EDU> Date: Thu, 3 Jun 1999 08:32:09 -0400 From: "Sean O'Connell" To: Marcel Moolenaar Cc: FreeBSD mobile Subject: Re: Matlab 5.3 Reply-To: "Sean O'Connell" References: <14165.38910.206452.281058@knock.econ.vt.edu> <19990602235040.B5623@stat.Duke.EDU> <37564D49.81B57144@scc.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2 In-Reply-To: <37564D49.81B57144@scc.nl>; from Marcel Moolenaar on Thu, Jun 03, 1999 at 11:39:21AM +0200 X-Organization: Institute of Statistics and Decision Sciences Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 1999 Jun 03, Marcel Moolenaar (aka marcel@scc.nl) wrote: > Sean O'Connell wrote: > > > > On 1999 Jun 02, Russell D. Murphy Jr. (aka rdmurphy@neale.econ.vt.edu) wrote: > > > > > > I'm trying (again) without success to install Matlab. I'm using: > > > > There are two main ways of doing this. > > > > 1) Use a supported platform (a linux box or actually a digital unix or > > sun or whatever will also unpack the linux distribution too) to unpack > > it onto an nfs mount or a local directory, tar it up and change the > > MATLABDIR stuff, and modify a few other key scripts that use the > > /bin/uname command and look for linux (Linux?) and lie to them :). > > A more structural approach is to install sh-utils-*.rpm, which includes > uname and to apply my uname patch. That way you don't have to edit scripts: > > scones% /compat/linux/bin/uname > Linux > scones% /usr/bin/uname > FreeBSD Marcel- some of this is based on using 2.2.x with linux_lib-2.[4,5,6], not your more complete solution. I haven't done a Matlab on FreeBSD in a while (I will be doing it shortly). > > *this is critical; /bin/tar is hard coded into the tsetup and xsetup > > linux executables...grrr, this caused the majority of my troubles* > > Isn't this solved by installing tar-*.tpm? Perhaps. I will have to try it shortly. I will try to report back to the list. > > + elif [ -f /usr/bin/uname ]; then # FreeBSD? > > + case "`/usr/bin/uname`" in > > + FreeBSD) > > + Arch="lnx86" > > + ;; > > + esac Maybe, but I haven't tested. This was based again on an older setup and was meant to convey that Matlab is an amazing royal pain in the assets to install. > See point 1. > > > 6) while you have these tar files unpacked, there is one more little hack that > > has to get put in in the osversion check business: (sorry I don't have > > a diff convenient) > > Does it actually expects a version like x.y.z? Yes. I realized after sending the note that it may in fact be looking for a more recent variant than I was fibbing to it (again, I will know shortly). It is an attempt to sanity check for certain Linux kernel/ libc support. > Currently the patch produces something like the following: > > scones% /compat/linux/bin/uname -a > Linux scones.sup.scc.nl 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Wed Jun 2 > 15:24:26 CEST 1999 > marcel i386 unknown S -- ------------------------------------------------------------------------- Sean O'Connell Email: sean@stat.Duke.EDU Institute of Statistics and Decision Sciences Phone: (919) 684-5419 Duke University Fax: (919) 684-8594 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message