0

I am trying to install matlab in Ubuntu but getting this error:

Access Denied Unable to write to /usr/local/MATLAB/R2017a/
d a i s y
  • 5,511
  • Probably current permissions don't allow for access. Check current users access level or try sudo if required. – ankit7540 Apr 08 '17 at 03:26
  • 1
    @DavidFoerster I don't think so. The OP here isn't telling us what they are actually trying to do, but reading between the lines it looks like they just didn't run it with sudo. The dupe target won't help. – terdon Apr 26 '17 at 15:50
  • Please [edit] your question and tell us what command gave you that error. We can't guess. – terdon Apr 26 '17 at 15:50

2 Answers2

3

You need to have the root privilege in order to write or edit a file in any directory in /usr/local/. The mentioned error occurs because you do not have root privilege and you are trying to install it in a directory other than your home folder.

A quick solution is to install MATLAB on your home directory.

terdon
  • 100,812
Unique
  • 175
  • sudo chown -R $LOGNAME: /path/to/installation/directory if this doesnt solve sudo chmod u+rwx -R /path/to/installation/directory – Zubair Khan Mar 01 '22 at 07:11
0

Try sudo ./install from the folder containing the installation file. It worked for me.

Naveen
  • 103