Tuesday, 23 October 2012

Matlab/FSL + Ubuntu 12.04 library problem

Since upgrading to Ubuntu Precise 12.04, we've been getting an error on starting matlab of 

/usr/local/MATLAB/R2011b/bin/util/oscheck.sh: /lib64/libc.so.6: not found

This same problem also seemed to break bet from FSL.

Now in your matlab path, for us
/usr/local/MATLAB/R2011b/sys/os/glnxa64
you'll find
libstdc++.so.6
symbolically linked to
libstdc++.so.6.0.1.13

Ubuntu ships with a newer version of this library in
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16

So, I symbolically linked the Matlab version through to the one shipped with Ubuntu

$ cd /usr/local/MATLAB/R2011b/sys/os/glnxa64
$ mv libstdc++.so.6.0.1.13 libstdc++.so.6.0.1.13.old
$ ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 libstdc++.so.6.0.1.13

This seems to fix it.

No comments:

Post a Comment