Matlab unable to install add-ons

I'm on Arch Linux and when I try to install an add-on on Matlab, I get this error: "Unable to install because you do not have write permissions to this folder: /usr/local/MATLAB/R2024a" How can I solve this?

Antworten (1)

Manikanta Aditya
Manikanta Aditya am 23 Mär. 2024
Verschoben: Voss am 23 Mär. 2024

11 Stimmen

The error message you’re seeing is due to insufficient write permissions for the directory /usr/local/MATLAB/R2024a. This is common when trying to modify system directories as a non-root user.
Try this in terminal:
sudo chown -R yourusername:yourusername /usr/local/MATLAB/R2024a
This command changes the owner of the /usr/local/MATLAB/R2024a directory to yourusername, giving you write permissions.
Hope this works!

8 Kommentare

Thomas
Thomas am 23 Mär. 2024
Verschoben: Voss am 23 Mär. 2024
Thanks for the answers, it works
Manikanta Aditya
Manikanta Aditya am 23 Mär. 2024
Perfect, Thanks!
Guðjón Bergmann
Guðjón Bergmann am 3 Jul. 2024
Worked for me as well. Thanks!
Yash
Yash am 10 Jan. 2025
Worked for me aswell. Thank you!
鹤梦
鹤梦 am 11 Feb. 2025
Worked for me as well. Thanks!
Bendegúz
Bendegúz am 17 Feb. 2025
This worked for me as well! I am using mint.
Martin
Martin am 19 Feb. 2025
Worked for me thanks a lot!
Ryan
Ryan am 8 Mai 2025
It works but is really dangerous, the better option is to reinstall matlab in a folder after the home folder.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2024a

Tags

Gefragt:

am 23 Mär. 2024

Kommentiert:

am 8 Mai 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by