Why do I receive a dependency error when installing MATLAB Connector on my Redhat or CentOS Linux machine?
[sslt@sslt Downloads]$ ./matlabconnector_1.3.0.2_glnxa64_installer.bin /tmp/mathworks_20642/./bin/glnxa64/matlabconnectorinstaller: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /tmp/mathworks_20642/./bin/glnxa64/matlabconnectorinstaller) /tmp/mathworks_20642/./bin/glnxa64/matlabconnectorinstaller: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /tmp/mathworks_20642/./bin/glnxa64/matlabconnectorinstaller) /tmp/mathworks_20642/./bin/glnxa64/matlabconnectorinstaller: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /tmp/mathworks_20642/./bin/glnxa64/matlabconnectorinstaller) /tmp/mathworks_20642/./bin/glnxa64/matlabconnectorinstaller: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /tmp/mathworks_20642/bin/glnxa64/libmwmcicore.so)
This also occurs when trying to use the MATLAB Engine API for Python.
OSError: Please reinstall MATLAB Engine for Python or contact MathWorks Technical Support for assistance: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by path/matlab/R2019a/extern/engines/python/dist/matlab/engine/glnxa64/matlabengineforpython3_6.so)
How can I resolve this issue?
Best Answer