: monospace;'>install_mex</span><span>.</span></div><div  class = 'S4'><span>2) Locate the system version of libstdc++.so.6 and create an alias in .bashrc for MATLAB to use this one, for example: </span><span style=' font-family: monospace;'>alias matlab='LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 /path/to/MATLAB/bin/matlab -desktop'</span><span>. Or simply run MATLAB with the same </span><span style=' font-family: monospace;'>LD_PRELOAD</span><span>.</span></div><div  class = 'S4'><span>3) Rename 