Monday, July 01, 2013

Problems with when compiling mex files in Matlab 2013a x64 on Xubuntu 13.04 x64

Problem compiling mex files in Matlab 2013a x64 on Linux (Xubuntu 13.04 x64):/usr/lib/gcc/x86_64-linux-gnu/4.7/cc1plus: /usr/local/MATLAB/R2013a/sys/os/glnxa64/ version `GLIBCXX_3.4.15' not found (required by /usr/lib/x86_64-linux-gnu/ /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1plus: /usr/local/MATLAB/R2013a/sys/os/glnxa64/ version `GLIBCXX_3.4.15' not found (required by /usr/lib/x86_64-linux-gnu/

The problem was that Matlab was linking (located in /usr/local/MATLAB/R2013a/sys/os/glnxa64) to the file it provides, i.e. (located in /usr/local/MATLAB/R2013a/sys/os/glnxa64).

This is the old version of libstdc++, and xubuntu has newer version, i.e. (located in /usr/lib/x86_64-linux-gnu).

Thus, I solved this problem by changing the symbolic link in Matlab to point to the new version:cd /usr/local/MATLAB/R2013a/sys/os/glnxa64
sudo mv
sudo ln -s /usr/lib/x86_64-linux-gnu/


  1. Anonymous10:27 AM

    thank you very much

  2. thank you very much!!!