Matlab library errors, std:exception

조회 수: 32 (최근 30일)
Quantum_C
Quantum_C 2023년 2월 1일
편집: Quantum_C 2023년 4월 28일
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