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

Hello I've been trying to install MATLAB 2012a on my device I followed the manual but I got stuck when the installer wanted to install the files in /usr/local/ It failed to creat a path called /usr/local/MATLAB/2012a. I think the problem is in permissions so I want to know how can I give the installer the permission to create and install files in this directory or other directories ?

Thanks in advance

share|improve this question
up vote 2 down vote accepted

You should install software to /usr/local/ as root. Open a terminal and type:

cd /path/to/your/matlab/install/folder
sudo ./installer

Where the install folder is the folder that contains the install script that you (presumably) clicked. The "installer" in the second command is the name of the install script file that was launched previously as normal user.

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.