The last posting on MatLab is 2022. Any updates since then?
I’m getting the following error when I try to install it:
pblase$ sudo -H ./install
Password:
terminate called after throwing an instance of ‘std::runtime_error’
what(): Failed to launch web window with error: Unable to launch the MATLABWindow application. The exit code was: 127
Aborted
It may be a problem with the root user (since you use sudo) not having the DISPLAY environment variable set, which informs the terminal how/where to draw GUI things.
I haven’t got a system in front of me, but perhaps try sudo -E -H, so that -E preserves the DISPLAY environment variable.
Alternatively, if you log in as the root user (rather than using sudo) it will probably work.
I can’t confirm this is correct, but those would be my steps if I saw the error.
I’m executing from the /bin directory.
And yes, I’m talking to the Mathworks team. One problem is that they don’t support ClearLinux, and there seem to be a few differences.
My gut feeling (and I’m not a Clear Linux expert, but old enough to know when things are more difficult than they need to be) - is the libcairo library mismatch, and you’ll have to figure out what version it needs, with what compile options, and hope that’s the only thing that’s broken.
If you are trying to get work done, I would recommend using a more mainstream/supported Linux distro (eg Ubuntu) so that you don’t have to jump through hoops and figure out all the problems.
I am not belittling ClearLinux, and for some purposes it’s great, but if you’re a student or someone is paying you for your time, it’s better to be focusing on the task at hand and not constantly battling with your operating system. As someone who started Linux with Slackware in the early days, I’ve known the pain of constant battles, and I’m very grateful that Linux Mint “Just Works” for me with almost everything (since it’s basically Ubuntu which has become a sort of de facto standard).