error messages when installing matlab. How to fix this?

조회 수: 11 (최근 30일)
Charlotte Liang
Charlotte Liang 2020년 10월 30일
댓글: Nikhil Jayswal 2020년 11월 3일
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)

채택된 답변

Charlotte Liang
Charlotte Liang 2020년 11월 2일
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
Nikhil Jayswal
Nikhil Jayswal 2020년 11월 3일
Thank you so much! This saved me a lot of time. Do you have any idea why it works?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Mario Malic
Mario Malic 2020년 10월 30일

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by