FEATools stand-alone installation - MATLAB runtime error

Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

FEATools stand-alone installation - MATLAB runtime error

zaleksf
Hello:

I receive a MATLAB runtime error when trying to run the application in Linux as a stand-alone application. Details below >>

*user*@computer:~/Apps/Engineering/Precise_Simulation/FEATool_Multiphysics/application$ ./run_FEATool_Multiphysics.sh /home/*user*/Apps/Engineering/Precise_Simulation/MATLAB_Runtime/v97
------------------------------------------
Setting up environment variables
---
LD_LIBRARY_PATH is .:/home/*user*/Apps/Engineering/Precise_Simulation/MATLAB_Runtime/v97/runtime/glnxa64:/home/*user*/Apps/Engineering/Precise_Simulation/MATLAB_Runtime/v97/bin/glnxa64:/home/*user*/Apps/Engineering/Precise_Simulation/MATLAB_Runtime/v97/sys/os/glnxa64:/home/*user*/Apps/Engineering/Precise_Simulation/MATLAB_Runtime/v97/sys/opengl/lib/glnxa64
An Error has occurred while trying to initialize the MATLAB Runtime.  
The error is: Fatal error loading library /home/*user*/Apps/Engineering/Precise_Simulation/MATLAB_Runtime/v97/bin/glnxa64/libmwmclbase.so Error: libmwblas.so: cannot enable executable stack as shared object requires: Invalid argument
Error: mclmcr initialization failed

OS: Debian 13

Installation: /home/user/ directories (same failure results using the FEATool installer default locations in /usr/..., so I tried installing it in the /home/user directories as shown in the installation guide)

I have previously installed MATLAB 2024b and installed FEATool Multiphysics as an application through the MATLAB application as a toolbox and that worked just fine. My goal is to be able to use FEATool Multiphysics without MATLAB.

This seems to be a MATLAB issue, but I have not found this runtime error on the MATLAB site. Any insight or recommendations to resolve this would be appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: FEATools stand-alone installation - MATLAB runtime error

Precise Simulation
Administrator
This post was updated on .
I have not seen this before, this likely seems to be something new with Debian 13. The specific error

    libmwblas.so: cannot enable executable stack as shared object requires: Invalid argument

indicates it cannot execute the blas linear algebra library. From searching this error, it seems it might be possible to grant permission to execute running

    sudo apt install execstack
    sudo execstack -c /home/*user*/Apps/Engineering/Precise_Simulation/MATLAB_Runtime/v97/bin/glnxa64/libmwblas.so


But it might also not work. In the long run the new Python frontend will make the Matlab runtime optional and not necessary anymore.

https://www.mathworks.com/matlabcentral/answers/2174492-issue-with-matlab-install-ibmwfoundation_crash_handling-so-cannot-enable-executable-stack-as-share

Please do update, if and how you get it to work.
Reply | Threaded
Open this post in threaded view
|

Re: FEATools stand-alone installation - MATLAB runtime error

zaleksf
Thanks for your response. I will try this solution.
Reply | Threaded
Open this post in threaded view
|

Re: FEATools stand-alone installation - MATLAB runtime error

zaleksf
Thank you for looking into this issue and providing the solution using the execstack command. I did see where this solution worked for another person with a similar problem (different application) using the Archlinux OS.

Unfortunately, Debian no longer carries the execstack tool, deprecating it in 2021.

I will return to using MATLAB 2024b as the front end for FEATool until the new python UI is available.