MATLAB: Am I getting the error “Can’t reload ‘/usr/loca​l/MATLAB/R​20XXx/bin/​glnxa64/li​bmwhgbuilt​ins.so’ while starting an MATLAB on Linux

can't reload (linux)cannotlibmwhgbuiltinsMATLABreload

When I launch MATLAB on Linux I receive the following error:
 
Can't reload '/usr/local/MATLAB/R20XXx/bin/glnxa64/libmwhgbuiltins.so'
Error in connector.internal.autostart.run
Error in connector.internal.autostart.run
 

Best Answer

The error message does not indicate the actual problem due to which the error is thrown. There can be some dependent libraries to 'libmwhgbuiltins' that may be missing in the system.
We can check if all the dependencies are present for this library by performing the following steps:
1. Using a terminal, navigate to the directory where the library is found:
 
cd /usr/local/MATLAB/R20XXx/bin/glnxa64/
2. Then run the 'ldd' command as shown:
 
ldd libmwhgbuiltins.so
3. Observe for any missing libraries in the output.
Example: ERROR: libXt.so.6 => not found libXext.so.6 => not found
4. Install the missing libraries using:
 
sudo yum install libXt
If you are unfamiliar with installing libraries on your distribution consult your documentation for more information.
This should resolve the issue.