error messages when installing matlab. How to fix this?

10 ビュー (過去 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 Center および File ExchangeIntroduction 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