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
you'll find
symbolically linked to

Ubuntu ships with a newer version of this library in

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. libstdc++.so.
$ ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16 libstdc++.so.

This seems to fix it.

No comments:

Post a Comment