How to Install additional toolbox of MATLAB in Ubuntu using Add-ones?
조회 수: 83 (최근 30일)
이전 댓글 표시
I am using Ubuntu 18.04.I am using MATLAB R2019b Version.I want to add Global Optimization toolbox in MATLAB but whenever I try to install any Toolbox, it shows me Unable to write!! I am attaching screenshot of error message. Can anyone suggests me how should I proceed??
![Screenshot from 2019-12-12 09-01-12.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254089/Screenshot%20from%202019-12-12%2009-01-12.png)
댓글 수: 6
Nicolas
2023년 12월 28일
you must run matlab with sudo to update add-ons.
in a console:
sudo matlab
and then, try again!
Noah Curran
2024년 7월 31일
편집: Noah Curran
2024년 7월 31일
Wendelin's solution worked like a charm. Nicolas's requires giving a license to the root user which I believe is inadvisible, though it should also work.
답변 (1개)
Aditya
2024년 11월 20일
The error message you're seeing is likely due to insufficient write permissions for the directory
'/usr/local/MATLAB/R2019b'. This is a common issue when trying to modify system directories as a non-root user. Here's how you can resolve it:
open a terminal and run the following command to change the ownership of the directory to your user account:
sudo chown -R yourusername:yourusername /usr/local/MATLAB/R2019b
Replace the 'yourusername' with your actual ubuntu user name.
You can also refer to the similar MATLAB Answers post:
- https://in.mathworks.com/matlabcentral/answers/479958-installer-does-not-have-sufficient-permissions-to-install-this-add-on-add-ons-installation-folder
- https://in.mathworks.com/matlabcentral/answers/2097931-matlab-unable-to-install-add-ons
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!