Skip to content

Fixing legacy MATLAB code runner errors

Dr. Bryan Roessler edited this page Aug 11, 2025 · 5 revisions

Legacy MATLAB releases contain ABI incompatibilities with AlmaLinux 9 onwards. See this gist for fix.

tl;dr remove the packaged c++ libraries so MATLAB uses the newer system libraries instead.

mv /opt/MATLAB/RELEASE/sys/os/glnxa64/libstdc++.so.6{,.bk}
mv /opt/MATLAB/RELEASE/sys/os/glnxa64/libstdc++.so.6.0.28{,.bk}
mv /opt/MATLAB/RELEASE/bin/glnxa64/libstdc++.so.6{,.bk}
mv /opt/MATLAB/RELEASE/bin/glnxa64/libstdc++.so.6.0.28{,.bk}

Clone this wiki locally