Installing MATLAB: processor is missing the SSE2 instructions

Daniel Underwood djuatdelta at gmail.com
Sun Jul 12 15:53:34 UTC 2009


Trying to install MATLAB (R2008b) according to the directions here:
<http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-matlab.html>

Here's what happens when I try to install:

devil # /compat/linux/bin/sh /home/daniel/matlab-install/install
expr: illegal option -- r
usage: expr [-e] expression
/home/daniel/matlab-install/install: line 197: [: -ne: unary operator expected

Error: Your computer processor is missing the SSE2 instructions that
       are required for MATLAB to run correctly.
       For system requirements consult http://www.mathworks.com ...


Ignore, for now, the line 197 error.  The following is an excerpt from
the install script:

    instructioncheck() { # check /proc/cpuinfo on glnx86 for
                         # correct level of instructions
                         # Output the flag location. A zero mean
                         # no flag.
        case $Arch in
            glnx86)
                # Example: Be sure that the platform has flag sse2
                #          There are many ways to do this.
                #          Output the flag location.
                expr "`cat /proc/cpuinfo`" : '.* sse2 .*$'
                return
                ;;
            *)
                ;;
        esac


This "sse2" flag is not found in /compat/linux/proc/cpuinfo:

[daniel at devil ~]$ cat /compat/linux/proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 7
model name	: Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
stepping	: 10
processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 7
model name	: Intel(R) Core(TM)2 Duo CPU     T7700  @ 2.40GHz
stepping	: 10
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 b19 b21 mmxext mmx fxsr xmm b26 b27 b28 b29 3dnow
cpu MHz		: 2394.02
bogomips	: 2394.02
[daniel at devil ~]$

Surely my cpu supports the needed instructions sets for MATLAB,
because I've installed and used this exact MATLAB distribution on this
machine when running Linux.

What exactly is going on here?  How do I fix this problem?

TIA,
Daniel


More information about the freebsd-questions mailing list