[1153] in netbsd-help mailing list archive

home help back first fref pref prev next nref lref last post

Matlab 5.1 on NetBSD

daemon@ATHENA.MIT.EDU (Alex T Prengel)
Thu Aug 21 18:55:17 1997

To: netbsd-help@MIT.EDU
Cc: alexp@MIT.EDU
Date: Thu, 21 Aug 1997 18:55:04 EDT
From: Alex T Prengel <alexp@MIT.EDU>


Howdy,

I was wondering if any netbsd folks could help figure out why Matlab 5.1
doesn't seem to run on NetBSD (at least not on zorp, which is the only
machine I have access to).

A couple of relevant points-

Matlab 4.2 seems to work fine on NetBSD when the relevant @sys links
are made to the Linux distribution, and the Matlab ARCH variable is
set appropriately (see next para).

The Mathworks have their own equivalent of ATHENA_SYS, to define different 
architectures- they call their version ARCH, and our main startup perl
script /mit/matlab_v5.1/arch/share/bin/wrapper sets the right values
using subroutine get_arch, about 3/4 of the way down, and the line:

    $ENV{"ARCH"} = &get_arch($sys);

earlier in the script. We lie, telling it that a NetBSD machine is a
Linux one by setting ARCH to lnx86 in that case:

      if (/nbsd/) {
          $return = "lnx86";
          last DO_ARCH;
      }

This seems to work for Matlab 4.2 but not 5.1; you can try it yourself
by doing "add matlab_v5.1; matlab", which should start Matlab. Any
suggestions gratefully acknowledged (or flames, in case I missed
something trivial :-).

                                                    Alex



home help back first fref pref prev next nref lref last post