Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install MATLAB R2010b to Ubuntu 12.04. I have the ISO file. First I copied it to my PC and then extracted it. Now it seems like I should run the install script. But I could not do that.

Here is the beginning of the install script to give you an opinion if it is not a script and I am doing something wrong:

# Name:
#    install -  script file for invoking the Multi-platform installer on Linux.
#    Usage: install [-h|help]"
#                              [-javadir <directory>] | [-root <directory>] |"
#                              [-test] | [-v|-verbose]"
#                              -h|-help        - Display arguments."
#                              -test           - Don't actually run the java
#                                                command (only useful with -v)."
#                              -v|-verbose     - Display settings."
#                              -javadir <directory>       - Override default java     root directory."
#                              -root <directory>          - Override default DVD root directory."
#              The default settings when no override inputs are supplied are: "
#              -root = <directory containing this script>/../"
#              -javadir = <root>/java/jre/$ARCH/jre'
# Copyright 2009-2010 The MathWorks, Inc.

How can I run this script? I tried to rename it as and then tried

 $ ./

from the command window but I got the following error:

root@ghostrider:/home/zero/Downloads/R2010b_UNIX# ./ 
Preparing installation files ...
Installing ...
./ line 562: /tmp/mathworks_7799/java/jre/glnx86/jre/bin/java: Permission     denied

Am I doing something wrong? Could you please help me?


share|improve this question
Do not extract the ISO. It is a CD image, you will need to mount it. Then you can run the installer script. – Martin Ueding Sep 27 '12 at 10:34
@queueoverflow you are right! Installation started now. Thank you so much. – Amadeus Bachmann Sep 27 '12 at 10:49
@queueoverflow - you should move that comment down as an answer – RobotHumans Sep 27 '12 at 11:56
@aking1012: Too late :-) – Martin Ueding Sep 28 '12 at 10:14
up vote 1 down vote accepted

You need to mount an ISO and then install it according to the set up instructions:

share|improve this answer

You need to give executable permission to sys/java/jre/glnx86/jre/bin/java.

share|improve this answer

Assuming that image is named R2015b_glnxa64.iso, simply mount ISO:

sudo mkdir -p /media/iso
sudo mount -o ro,loop ./R2015b_glnxa64.iso /media/iso

run the installation script:

sudo /media/iso/install

and finally unmount image:

sudo umount /media/iso
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.