MATLAB: /usr/local​/MATLAB/R2​011a/bin/u​til/oschec​k.sh: 605: /lib64/libc.so.6: not found

lib64 libcMATLABshared libraryUbuntuubuntu 11.04ubuntu 11.10

My MATLAB R2011a installation on Ubuntu 11.04 64-bit gives the following warning when starting up:
/usr/local/MATLAB/R2011a/bin/util/oscheck.sh: 605: /lib64/libc.so.6: not found
The library in question is installed on the system:
$ locate libc.so
/lib/x86_64-linux-gnu/libc.so.6
/lib32/libc.so.6
/usr/lib/x86_64-linux-gnu/libc.so

Best Answer

I had the same problem, you can make a symbolic link to the location matlab expects it to be with the following command:
ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6
hope this helps!