Effacer les filtres
Effacer les filtres

How can i run the add on explorer/installer as root?

11 vues (au cours des 30 derniers jours)
KJK
KJK le 23 Nov 2021
Modifié(e) : Simar le 6 Mar 2024
I need some more toolboxes but cant install them because the explorer does not have writing permission. I cant run Matlab on root because it crashes when i change the license user to root.

Réponses (1)

Simar
Simar le 6 Mar 2024
Modifié(e) : Simar le 6 Mar 2024
Hi,
I understand that you are facing difficulty dealing with permission issues when installing MATLAB toolboxes due to writing permissions. It is important to note that running MATLAB as root is not recommended due to potential security risks and the possibility of affecting system-wide configurations. Here are some workarounds to help installing additional MATLAB toolboxes without needing to run MATLAB as root:
1. Modify Permissions:
Temporarily change the permissions of the MATLAB installation directory to allow user to install the toolboxes. Do this from the terminal (assuming using Unix-like system) with commands like:
sudo chown -R your_username:your_group /path/to/matlab/directory
After changing the ownership, try installing the toolboxes again. Remember to revert the permissions back to their original state for security reasons once installed the necessary toolboxes.
2. Use install-addon Function:
MATLAB provides a programmatic way to install add-ons, including toolboxes, using the matlab.addons.install function. This might bypass the need for GUI-based installation and potentially avoid the permission issues. One would need the file path of the toolbox file. For example:
matlab.addons.install('path_to_toolbox_file.mltbx');
3. Install Toolboxes Manually:
Go through add-ons on MATLAB and search for toolbox to install. Try manually extracting them to appropriate directory. This method is more hands-on and requires careful attention to ensure that MATLAB recognizes the manually installed toolboxes.
If issue persists, try reaching out to MATLAB Support.
Please refer to the following links:
Hope it helps!
Best Regards,
Simar

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by