## MATLAB 2008a installation problem on Ubuntu 8.04

October 7th, 2008 | Categories: Linux, matlab | Tags:

So..I finally get hold of a standalone copy of MATLAB 2008a and set about installing it on my Ubuntu laptop. I have installed MATLAB literally hundreds (if not thousands) of times so this is going to be easy. Right? Wrong!

I am using the installation DVD which is mounted at /media/cdrom0 so I type the following into the bash command prompt:

/media/cdrom0/install

bash: /media/cdrom0/install: /bin/sh: bad interpreter: Permission denied

gah! OK, no problem – I’ve seen this before so I type

sh /media/cdrom0/install

-------------------------------------------------------------------

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/cdrom0/update/install/main.sh: 178:
/media/cdrom0/update/bin/glnx86/xsetup: Permission denied

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 . . .

Permission denied? Ahh, I should have used sudo – silly me. After all, if I don’t then I am going to run into trouble eventually. So I try

sudo sh /media/cdrom0/install

Same result as before it seems. Let’s try the suggestion given by the install script and run the text only installer:

sudo sh /media/cdrom0/install* -t

I get asked if I want to agree to the license agreement before getting this error:

/media/cdrom0/update/install/main.sh: 582: /media/cdrom0/update/bin/glnx86/xsetup: Permission denied

Before I rolled my sleeves up and got my hands really dirty I did some googling. This link offers some advice – unmount and remount the DVD as follows:

sudo umount /media/cdrom0
sudo mount -o exec,suid /dev/scd0 /media/cdrom0

then run the installer again:

sudo sh /media/cdrom0/install

Success! Hope it worked for you too :)

1. This is very helpful! Thanks!!!

2. Thanks.