Matlab unable to install R2021b: "unable to write to selected folder" in Ubuntu 20.04
93 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jim Bosley
am 29 Dez. 2021
Kommentiert: Ren
am 12 Jul. 2022
Trying to install R2021b on the system drive. Using Ubuntu 20.04. 384 Gb available. I download
matlab_R2020b_glnxa64.zip
and unzip it.
unzip matlab_R2020b_glnxa64.zip
If I run
./install
I go through the setup, select /usr/local/MATLAB/R2021b, and the installer fails, saying something like "Unable to create selected folder". If I create the folder with open (chmod 777) permissions, I get "Unable to write to selected folder".
If I instead use
sudo ./install
I'm asked for my password, and the process hangs. No graphical install window, nothing. Just an unusable terminal window. This happens in both terminator and term.
6 Kommentare
Philip Wesley
am 3 Jan. 2022
You'll want to run MATLAB as root if you wish to install it in the default directory. However, there is a known issue where the MATLAB installer where it won't lauch as root. To get past this issue, do the following:
- Launch Terminal
- Type the following in the terminal to allow the root user to access the running X server:
xhost +SI:localuser:root
- After running the command above try running the installer "sudo ./install"
Akzeptierte Antwort
Jim Bosley
am 3 Jan. 2022
5 Kommentare
Maciej Wozniak
am 13 Feb. 2022
some additional comments
- ./actiavte_matlab.sh is in urs/local/matlab/YOURMATLABVERSION/bin
- to run matlab command from the terminal you have to add the urs/local/matlab/YOURMATLABVERSION/bin to your path e.g. `export PATH=/usr/local/MATLAB/R2021b/bin/:$PATH`
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!