Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Solutions Academia Support User Community Company
spacer spacer spacer spacer spacer spacer

Technical Solutions

How do I use MATLAB Compiler 4.1 (R14SP1) in 32-bit emulation mode on a 64-bit Opteron Linux platform?


Date Last Modified: Friday, June 26, 2009
Solution ID:   1-XJ5PA
Product:   MATLAB Compiler
Reported in Release:   R14SP1
Platform:   Linux
Operating System:   Linux Any
 

Subject:

How do I use MATLAB Compiler 4.1 (R14SP1) in 32-bit emulation mode on a 64-bit Opteron Linux platform?

Problem Description:

I am running MATLAB in 32-bit emulation mode on a 64-bit Opteron Linux machine. However, when I try using the MATLAB Compiler, I receive the following error:
Error: The MATLAB script returned a bad status while determining environment variables. There appears to be a problem with your MATLAB installation. You must fix the problem before mcc can work. Any messages from the script follow . . .

matlab: No MATLAB bin directory for this machine architecture.
How can I make the MATLAB Compiler work?

Solution:

This solution applies to MATLAB Compiler 4.1 (R14SP1) only. For information about using MATLAB Compiler 4.2 (R14SP2) and later versions please see the related solution below.

This error occurs because the MATLAB Compiler is not configured to be run on a 64-bit Opteron Linux machine. To work around this issue, try modifying the mbuildopts.sh file so that $ARCH is identified correctly, and append -m32 to the GCC flags. You can find an example of such a modified options file at the following website:

http://www.mathworks.com/support/solutions/files/s1-XJ5PA/mbuildopts.sh

 

Related Solutions:

Please provide feedback to help us improve this Solution
Contact support
E-mail this page
Print this page