Matlab library errors, std:exception

54 views (last 30 days)
Quantum_C
Quantum_C on 1 Feb 2023
Edited: Quantum_C on 28 Apr 2023
Hello,
On a fresh Manjaro / Linux install of R2022b I am recieving the error:
Failed to load bundle #371: /opt/MATLAB/R2022b/bin/glnxa64/libmwrtifc.so
are there recommendations on how to correct such an issue?
I have uninstalled R2022b aand R2022a and recieving the same issue.
Thank you,
Mitchell
  1 Comment
Image Analyst
Image Analyst on 1 Feb 2023
What was MATLAB doing at the time? What did you tell it to do? Where is your code?
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
Recommendation would be to call tech support.

Sign in to comment.

Answers (1)

Gayatri Rathod
Gayatri Rathod on 27 Apr 2023
Hi Quantum_C,
This error message suggests that MATLAB is unable to load the runtime interface library (libmwrtifc.so) on your Linux system. Here are some possible solutions you could try:
  • Check if the library is present in the MATLAB installation directory. You can do this by navigating to the directory where MATLAB is installed and then going to the "bin/glnxa64" subdirectory. Look for the "libmwrtifc.so" file. You can do this by running the command in a terminal:
>> ls /opt/MATLAB/R2022b/bin/glnxa64/
  • Check that the file permissions for 'libmwrtifc.so' allow it to be read and executed. You can do this by running the command in a terminal:
>> ls -l /opt/MATLAB/R2022b/bin/glnxa64/libmwrtifc.so
  • Verifying that the file permissions are set to allow reading and executing by the MATLAB process. If not, run the command to add the necessary permissions:
>> sudo chmod 755 libmwrtifc.so
  • Check that all the necessary system libraries are installed. You can do this by running the following command in a terminal:
>>ldd /opt/MATLAB/R2022b/bin/glnxa64/libmwrtifc.so
This command will list all the shared libraries that the libmwrtifc.so library depends on. Make sure all these libraries are installed and accessible to MATLAB.
  • Try running MATLAB with the "LD_LIBRARY_PATH" environment variable set to the directory containing the "libmwrtifc.so" file. You can do this by running the following command in a terminal before starting MATLAB:
export LD_LIBRARY_PATH=/opt/MATLAB/R2022b/bin/glnxa64/
This will set the "LD_LIBRARY_PATH" variable to the directory containing the "libmwrtifc.so" file.
  • If none of the above steps work, try reinstalling the MATLAB Runtime Interface. You can download the installer from the MathWorks website and run it on your system.
You can read more about the ls, ls -l, chmod and ldd from the following documentation: ls doc, ls -l doc, chmod doc, ldd doc.
Hope it helps!
  1 Comment
Quantum_C
Quantum_C on 28 Apr 2023
Edited: Quantum_C on 28 Apr 2023
Thank you Gayatri,
I cd'ed in to
cd /opt/MATLAB/R2022b/bin/glnxa64/
& verified that libmwrtifc.so exists in the directory,
ls -ls libmwrtifc.so
>>> 188 -r-xr-xr-x 1 root root 189592 Jan 31 23:39 libmwrtifc.so
& since the permisssions don't match 755 I did the chmod, but this did not alleviate the error
ldd libmwrtifc.so -> showed no unlinked libraries
& finally, running
export LD_LIBRARY_PATH=/opt/MATLAB/R2022b/bin/glnxa64
before starting matlab also did not stop the error from stopping matlab from executing.
I will try re-installing the MATLAB Runtime Interface & see if that corrects the library issue.
Thank you for your clean and straightforward reponse.
Best

Sign in to comment.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!