Matlab library errors, std:exception

35 次查看(过去 30 天)
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 个评论
Image Analyst
Image Analyst 2023-2-1
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.

请先登录,再进行评论。

回答(1 个)

Gayatri Rathod
Gayatri Rathod 2023-4-27
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 个评论
Quantum_C
Quantum_C 2023-4-28
编辑:Quantum_C 2023-4-28
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by