Matlab does not run

I’m having problems getting matlab to run. This is what I get when I try to run it in the shell:

MATLAB is selecting SOFTWARE rendering.
Command `service` threw an exception
Error loading /home/raul/.MathWorks/ServiceHost/-mw_shared_installs/v2025.1.1.2/bin/glnxa64/mathworksservicehost/rcf/matlabconnector/serviceprocess/rcf/service/libmwmshrcfservice.so. libmwfoundation_crash_handling.so: cannot enable executable stack as shared object requires: Invalid argument: Success: Success

chatgpt recommended to check the status of:

execstack -q /home/raul/.MathWorks/ServiceHost/-mw_shared_installs/v2025.1.1.2/bin/glnxa64/mathworksservicehost/rcf/matlabconnector/serviceprocess/rcf/service/libmwmshrcfservice.so 

and the responde was:

- /home/raul/.MathWorks/ServiceHost/-mw_shared_installs/v2025.1.1.2/bin/glnxa64/mathworksservicehost/rcf/matlabconnector/serviceprocess/rcf/service/libmwmshrcfservice.so

so I don’t know why it is having problems loading it

did you refer to this?:

MATLAB - ArchWiki

your post did not reveal much …

(I wasn’t even smart enough to post the correct link to the Arch Wiki - have just corrected it)

I followed the install guide given by MathWorks. The guide you are posting is pretty similar and just guides you through the installation process.

It installed properly and Zsh recognizes “matlab” as a valid command, but when I run it I get the error message that I mention in my post.

P.S. Sorry It seems I can’t include links in my post so I wasn’t able to link to the MathWorks guide, but installation wasn’t the problem here

But you can - just not as an active link by just copy/pasting a link.
Use formatting.
Like I did above.
copy/paste the link, then format it using the blockquote or preformatted text items in the top row of the edit window here.

I’d just go as the Arch Wiki suggests - but I’m not smart enough (and have no need to) use the program …

like this:

https://de.mathworks.com/help/install/ug/install-products-with-internet-connection.html

or like this:
https://de.mathworks.com/help/install/ug/install-products-with-internet-connection.html

Mmm, it doesn’t let me. I think it is a permission issue because this is a new account. If I try to include links a pop up window appears that says:

An error occurred: Sorry, you can't include links in your posts.

… you are doing it wrong then :man_shrugging:
format it just like you formatted your quote, for example …
but: isn’t the link already there now anyway? :slightly_smiling_face:

Found a way of solving the issue, some files needed to have an executable stack, not just the one that Matlab was complaining about. When I did:

sudo find /home/raul/.MathWorks/ServiceHost/-mw_shared_installs/v2025.1.1.2/bin/glnxa64/ -name "*.so" -exec execstack -c {} \;

and then ran Matlab it worked this time

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.