error messages when installing matlab. How to fix this?

7 vues (au cours des 30 derniers jours)
Charlotte Liang
Charlotte Liang le 30 Oct 2020
When I try to install matlab on my CentOS 8 virtual machine, the below messsages show when I try to run it as a user or root user. How do I fix this?
[charl@localhost matlab]$ sudo ./install
No protocol specified
terminate called after throwing an instance of '(anonymous namespace)::DisplayError'
what(): No display available.
Aborted
[charl@localhost matlab]$ ./install
terminate called after throwing an instance of 'std::runtime_error'
what(): Unable to launch the MATLABWindow application
Aborted (core dumped)

Réponse acceptée

Charlotte Liang
Charlotte Liang le 2 Nov 2020
I found the soluiton here:
user@computer $ xhost +
>> access control disabled, clients can connect from any host
Then open a terminal as root and export the DISPLAY and run the installer:
root@computer # export DISPLAY=:0.0
root@computer # ./install
  1 commentaire
Nikhil Jayswal
Nikhil Jayswal le 3 Nov 2020
Thank you so much! This saved me a lot of time. Do you have any idea why it works?

Connectez-vous pour commenter.

Plus de réponses (1)

Mario Malic
Mario Malic le 30 Oct 2020

Catégories

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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by