Why do I receive "error while loading shared libraries: libmwmclmcrrt.so.x.x" when I run my compiled application generated using MATLAB Compiler from the terminal window on the same Linux system?

45 visualizaciones (últimos 30 días)
When attempting to run the executable, I receive the following error:
ERROR: error while loading shared libraries: libmwmclmcrrt.so.x.x: cannot open shared object: No such file or directory

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de Oct. de 2022
This error may occur if the environment variable LD_LIBRARY_PATH of the system is not set correctly.
When executing the application from the terminal window, the executable fails to locate the library libmwmclmcrrt.so.x.x, where x.x refers to the library for your specific release. The library exists in $MATLAB/bin/glnx64 (where $MATLAB is the MATLAB root directory)
Compare the LD_LIBRARY_PATH variable from within MATLAB, with that from the terminal window and ensure that both are the same.
At the MATLAB Command Prompt, type the following:
getenv('LD_LIBRARY_PATH')
At the system prompt, type the following:
printenv LD_LIBRARY_PATH
Verify the output is the same for both commands.
If the environment variable is not set correctly or not set at all, LD_LIBRARY_PATH should be set as described in the following documentation:
Also, ensure that the correct instance of $MATLAB/bin is on the system path and is ahead of any other instances of MATLAB installations (if any) on the same system.

Más respuestas (0)

Categorías

Más información sobre C Shared Library Integration en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R14SP1

Community Treasure Hunt

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

Start Hunting!

Translated by