4:51 - Thursday, 24 April 2014

Trouble Running Matlab 2012a On Ubuntu 12.04 64 Bits

I just finished a Matlab 2012a installation that reported that the C compiler needs to be upgraded, but got stuck when I tried to click on the hyperlink provided by the installer to fix it. When trying the new installation I get this:

 sudo sh matlabmatlab: 1: /home/antonio/Matlab/bin/util/oscheck.sh: /lib64/libc.so.6: not found

Is this due to the compiler issue? How do I fix this?

If something can’t find /lib64/libc.so.6 — You might find libc.so.6:

locate libc.so.6 # You might also need to update locate's database first: sudo updatedb

This command will tell You where it is. After what You might link it where it is expected:

sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6

If locate can’t find the file — this probably means You don’t have it. You can find out which package provides it with:

apt-file search libc.so.6 # You might need to run "sudo apt-file update" before that

I’ve just installed Matlab 2012b on Ubuntu 12.10 and followed up by installing the matlab-support package in the Ubuntu Software Centre:

sudo apt-get install matlab-support

(As per this answer in a related question: http://askubuntu.com/a/140078/16835)

This will add a desktop icon/launcher, as well as allow you to fix the compiler linking problem.

Share

Advertisement

Comment