Email me Call me on Skype RSS feed Twitter Facebook Last.fm Spotify Flickr Steam  Github

MATLAB with Ubuntu 11.10

Sun, 09/10/2011 - 12:49 -- Morgan

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

Submitted by phrygian (not verified) on

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...

sudo ln -s /lib/i386-linux-gnu/libc-2.15.so /lib/libc.so.6

And there its done!!!! Have fun enjoying MATLAB 2012!!!

Submitted by lynnd (not verified) on

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 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

Add new comment

Latest posts

...is the ability that every day provides the opportunity,...
1 month 3 weeks ago
MISHAP is yet to be made available for general release...
2 months 4 days ago
Faced with fitting well over 30 experiments at room and low...
4 months 1 week ago
  It has been some time since my last blog post, but this...
5 months 3 weeks ago
E2AF or "EPR 2 ASCII folder" is a folder version of E2A,...
7 months 3 weeks ago

Latest comments

Latest tweets