Recently I bought a student version of Matlab2008b. It was for Linux platform. Here’s my experience with installing the program on 64-bit Linux (Debian) architecture, what problems arose along the way and how they were addressed – with help from Mathworks tech support.
Matlab at work
Installing Matlab 7.7 (i.e. Matlab2008b) the old fashioned way was a breeze, but getting it to actually run on 64-bit architecture involved a few steps, which I didn’t know. I sent a query to Mathworks tech support saying:
The installation files were able to successfully install Matlab2008b on Ubuntu 9.04 (Jaunty), however, the program failed to load since it cannot find the jre files for 64-bit architecture. Is there a workaround for running the 32-bit program on 64-bit platform?
And they replied with a procedure to be followed to make that happen:
Yes – here is a full walkthrough:
1) When running the MATLAB installer (install_unix.sh) use the -glnx86 flag. This will allow it to install properly on a 64-bit Linux machine:
./install_unix.sh -glnx86 -t
2) Once the installer is finished, you will need to activate through mathworks.com, as the activation client will not work properly on 64-bit computers. To do so, follow the instructions below:
3) Once MATLAB is installed and activated, you will need to run MATLAB using the same -glnx86 flag that you used to install:
(where $MATLAB is the MATLAB installation folder)
NOTE: Some users have problems loading the JRE when running in this configuration. Creating a symlink in $MATLAB/sys/java/jre named glnxa64 pointing to glnx86 should resolve this issue. You can do this with the following command:
ln -s $MATLAB/sys/java/jre/glnx86 $MATLAB/sys/java/jre/glnxa64
And now it works. Haven’t had any GUI crash on me yet, but it been less than an hour since I’ve been using it. One way to avoid typing matlab -glnx86 before each launch is to create a local alias.
Under one of the listing for aliases, you can type in:
alias mat='matlab -glnx86 &'
Save and exit. Then onward, you can launch the program by simply typing in mat in the terminal.
In case your compiz is enabled, you might not see the menus correctly. To fix that problem, you have to run the following command at the terminal.