Why I got error 'No display available', even though I run MATLAB with '-nodisplay'?
Ältere Kommentare anzeigen
I am installing MATLAB R2022b for my Linux server with CentOS7.5. The OS of my local host is macOS 13.3.1.
I think I have installed the MATLAB sucessfully, because the log file told me so. However, when I input
matlab -nodisplay
I got errors
ps terminate called after throwing an instance of 'framework::window::DisplayError'
what(): No display available.
/home/MatlabR2022b/bin/glnxa64/MathWorksProductAuthorizer.sh: line 14: 45354 aborted
$BINDIR/MathWorksProductAuthorizer $@
It seems that MATLAB needs something to display. Indeed, my MacBook does not have an X server (like XQuartz). But I am runing MATLAB with nodisplay, why I need a screen to display GUI? How can I fix these problems?
PS: When I use a host with Xserver (MobaXterm in a Windows laptop), the above error disappears. But a new problem comes up: there is no output (including character output) at all! In this case, the command 'ps' shows that several processes of MATLABWindow and MathWorksProduct are runing.

So, I think MATLAB is sucessfully launched without any output. I can't quit MATLAB normally, the only way I can use in such a case is
kill -9 $(ps| grep MATLAB)
kill -9 $(ps| grep MathWorks)
I don't think there are any problem of Xserver, the GUI of firefox in my server works well.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!