From owner-freebsd-questions@FreeBSD.ORG Sun Jul 12 15:53:33 2009 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 E98E31065670 for ; Sun, 12 Jul 2009 15:53:33 +0000 (UTC) (envelope-from djuatdelta@gmail.com) Received: from mail-ew0-f227.google.com (mail-ew0-f227.google.com [209.85.219.227]) by mx1.freebsd.org (Postfix) with ESMTP id 47F5E8FC16 for ; Sun, 12 Jul 2009 15:53:32 +0000 (UTC) (envelope-from djuatdelta@gmail.com) Received: by ewy27 with SMTP id 27so1080877ewy.43 for ; Sun, 12 Jul 2009 08:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=qpLumpr5BUa+hHfB3I7VkrkbVGnDUuRzQZ4DReJrgw0=; b=cbCd+zW2C86y8Px/m86vOCyY6l6BKn3l/rumKtznm/PBe93XsOTVLu6I2LksRTXJXO jLolcPr22pfREHfw1As6yRsSP/J9OsY9VHOmQJkc0FljX9cXDH7zSnXnb3b2N6b3KsuV 2t6XrFZkIxawYSiyx7VuLm5VY5Wf79bh2Sf4Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=pB5ufYAv6Tf1T/L5MOKttEc0Wel+zfgpSQ44ZLtwBBJrPTawSuNv6f0GSR57QzJ4g5 QQ283h/0wAqTtI5/LwrONQYHL5fqboGgavEK06hlNge8uGY4fF0RyV7ZvLlxjDqjPjfl HGDhmfK2wwMMRvsrknNnOMIZdnKkOqQ6dr/MI= MIME-Version: 1.0 Received: by 10.216.23.72 with SMTP id u50mr1158050weu.178.1247414012236; Sun, 12 Jul 2009 08:53:32 -0700 (PDT) Date: Sun, 12 Jul 2009 11:53:32 -0400 Message-ID: From: Daniel Underwood To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Installing MATLAB: processor is missing the SSE2 instructions 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: Sun, 12 Jul 2009 15:53:34 -0000 Trying to install MATLAB (R2008b) according to the directions here: 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@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@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