How do I install MATLAB to a custom directory at the root level on Linux systems?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 5 Jan. 2023
Kommentiert: Walter Roberson
am 5 Jan. 2023
How do I install MATLAB to a custom directory at the root level on Linux systems?
Akzeptierte Antwort
MathWorks Support Team
am 5 Jan. 2023
On Linux systems, the MathWorks installer installs MATLAB to the following default location:
/usr/local/MATLAB/<releaseName>
If you do not have access to the default location, and need to install MATLAB at the root level:
1. Create a directory at the root level with appropriate read, write and access permissions using the mkdir command. For example:
mkdir -m<permissionNumber> /matlabdir
2. Launch the MathWorks installer by executing:
xhost +SI:localuser:root
sudo -H ./install
xhost -SI:localuser:root
3. When prompted by the installer to select an installation folder, select the folder you created, and follow the prompts to complete the installation.
Creating a directory at the root level and installing software into that directory comes with security risks. Please be aware of the risks prior to proceeding. If you are a single user and you do not have access to directories at the root level, it is preferable you install MATLAB to your home directory.
1 Kommentar
Walter Roberson
am 5 Jan. 2023
Note that on Linux systems, the root filesystem / might be configured as read-only -- https://wiki.debian.org/ReadonlyRoot (debian) or https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_file_systems/setting-read-only-permissions-for-the-root-file-system_managing-file-systems (RedHat) for example.
The last several years, the / filesystem on MacOS has been readonly.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!