Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 matlab
matlab: 1: /home/antonio/Matlab/bin/util/ /lib64/ not found

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

share|improve this question
On my system (12.04), libc is in /lib/x86_64-linux-gnu/ (which is a symlink to On a different machine, which I cannot access right now, I had no trouble installing 64bit Matlab (no explicit compiler upgrade necessary). Are you running 64bit Ubuntu? – Jan Dec 9 '12 at 17:45
yes, the question says I'm running Ubuntu 12.04 64 bits (on the title) – andandandand Dec 16 '12 at 3:24

If something can't find /lib64/ -- You might find

locate # 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/ /lib64/

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 # You might need to run "sudo apt-file update" before that
share|improve this answer

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:

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.