AWS matlab run via terminal
1 回表示 (過去 30 日間)
古いコメントを表示
On AWS I have a matlab stack running. Via remote desktop the matlab runs. However via ssh I would like to run the matlab via terminal as part of a bash pipeline. However, when I try and run a simple matlab script via terminal using ssh I get this error:
MATLAB is selecting SOFTWARE OPENGL rendering.
terminate called after throwing an instance of '(anonymous namespace)::DisplayError'
what(): No display available.
I'm wondering if anyone has any work around for this? Is this just a limitation to using matlab on aws?
cheers,
Tom
0 件のコメント
回答 (1 件)
Zeeshaan Ali
2021 年 5 月 19 日
Hi,
Usually this error occurs, when MATLAB is invoked from a remote SSH terminal which tries to open a GUI window process and its true for other application as well like “firefox”.
For this particular case it is evident that MATLAB is trying to open the GUI window, which could be due to lack of a persistent license. It worked in case of RDP based desktop environment because there you might have provided your license credentials in the GUI window. And online based licensing is not persistent after you close the MATLAB or try to open another instance of MATLAB.
This issue is solvable if you try to associate a different mode of licensing like Network based license manager, where it needs to be setup only once. You can access the manager from the link given below:
And one more alternative could be setting up LNU based license which can be found here:
Hope this helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!