Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

2 Answers 2

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

I had the same problem. Just change your directory from /usr/local to let's say... a home folder. So just change it to /home/user/MATLAB.

share|improve this answer
I wont downvote it, but I should. It's an answer, but it's not the answer to his question; instead of solving the problem, you tell the installer to go somewhere else. That's called avoiding the problem. –  Sh3ljohn Jan 6 '14 at 0:13

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.