Under the new Ubuntu release (11.10 Oneiric Ocelot), trying to run MATLAB gets the following error
/opt/MATLAB/bin/util/oscheck.sh: 605: /lib64/libc.so.6: not found
MATLAB will still load, but will effectively be useless and can only be closed by killing the process. Furthermore, my previous trick of
sudo ln -s /lib64/x86_64-linux-gnu/libc-2.13.so /lib64/libc.so.6
On closer inspection, the libc.so.6 link exists in /lib64 however the file it actually points to (/lib64/x86_64-linux-gnu/libc-2.13.so) does not exist, thanks to the update it's moved.
So for 64 bit:
Remove old link
sudo rm /lib64/libc.so.6
(Be careful when removing the old link. It is essential for Linux to boot. So if you reboot before replacing the link with the new version then it'll be time to dig out a live disk. If you're paranoid then you can copy "cp" libc.so.6 to something like libc.so.6.backup first.)
Replace with new link
sudo ln -s /lib/x86_64-linux-gnu/libc-2.13.so /lib64/libc.so.6
For 32 bit:
(I have not tested this as I only run x64 systems, but from the comments I think it should work)
Remove old link (again be careful with this command)
sudo rm /lib32/libc.so.6
Replace with new link
sudo ln -s /lib/i386-linux-gnu/libc-2.13.so /lib/libc.so.6
Of course if this is a fresh Ubuntu install then you probably wont need the rm (remove) command.


Comments
MATLAB IN UBUNTU 12.04 32 BIT
MATLAB IN UBUNTU 12.04 32 BIT,Hello all,For those of you using Ubuntu 12.04 LTS 32-bit, try this out. It works for me and i'm sure it's definitely going to work for you as well. First, aforementioned in Morgan's post, please remove the existing file.Second, Ubuntu 12.04 LTS has libc-2.15.so instead of libc-2.13.so. So please use this code instead...
And there its done!!!! Have fun enjoying MATLAB 2012!!!
For Ubuntu 12.04 64 bit, in
MATLAB 2012a Ubuntu 12.04 64 bitin response to the following error message: '/usr/local/MATLAB/R2012a/bin/util/oscheck.sh: /lib64/libc.so.6: not found' use: sudo ln -s /lib/i386-linux-gnu/libc-2.15.so /lib64/libc.so.6
Thanks for documenting this
Thanks for documenting this issue,for the precise pangolin (12.04) Your trick still works, just use updated version of the library /lib/x86_64-linux-gnu/libc-2.15.so or adjust the version to Your needs
Thanks to you both. Hope you
Thanks to you both. Hopefully this post will continue to help people out.
It certainly did. :) Thanks!
It certainly did. :) Thanks!
Add new comment