Category Archives: Matlab

Ubuntu 9.10, Matlab, Mathematica

To install those software packages it is necessary to install first the library ‘libstdc++5’ manually. Since it is not available from Synaptic it is necessary to download it manually.

Additionally, for Matlab, after installing it we have to do

root# cd /usr/loocal/matlab

root# ./install_matlab -glnx

 

and say yes to all the questions. Then, do (still in /usr/loocal/matlab ):

root# cd bin

root# gedit matlab

 

and add the following line AFTER the FIRST ONE (#!/bin/sh):

export AWT_TOOLKIT=3DMToolkit

and save the file and exit. Now, you should be able to load Matlab without problems and from anywhere.

 

 

 

 

 

 

Matlab and Ubuntu

After some time of research, here is how it worked for me:

Install normally following the documentation, even if it doesn’t ask for symbolic links. Then go to the installation directory (/usr/local/matlab in my case):

./install_matlab -glnx

Answer ‘y’ to all questions and keep the suggestions (this takes care of the license stuff). In the same directory as the matlab file (e.g. /usr/local/matlab/bin/) create a file (I called it matlab2 — you can call it matlab2.sh). In this file write

export AWT_TOOLKIT=3DMToolkit
/usr/local/matlab/bin/matlab

Now in the terminal type (still within /usr/local/matlab/bin/)

chmod 755 matlab2

Finally, start Matlab by doing

./matlab2

Matlab 2007 under Fedora 7

Now, trying to install Matlab 2007 under Fedora 7, (as root), I got the following answer:

[root@localhost matlab]# /media/MATHWORKS_R2007A/install &
[1] 4217
[root@localhost matlab]# ——————————————————————-

An error status was returned by the program ‘xsetup’,
the X Window System version of ‘install’. The following
messages were written to standard error:

/media/MATHWORKS_R2007A/update/bin/glnx86/xsetup: error while loading shared libraries: libXp.
so.6: cannot open shared object file: No such file or directory

Attempt to fix the problem and try again. If X is not available
or ‘xsetup’ cannot be made to work then try the terminal
version of ‘install’ using the command:

install* -t or INSTALL* -t

——————————————————————-

Sorry! Setup aborted . . .


The solution was given at http://www.mathworks.com/matlabcentral/newsreader/view_thread/153714, and consists on installing a missing library, right there, as root:

yum install libXp-devel

When finished, try to install Matlab again. It works.