MATLAB Answers

4

Why do I get a libc.so.6: not found error when launching MATLAB in Ubuntu?

I get the following error when I run MATLAB in Ubuntu:
/usr/local/MATLAB/R2011a/bin/util/oscheck.sh: 605: /lib/libc.so.6: not found

Products


Release

R2011a

1 Answer

Answer by MathWorks Support Team on 4 Oct 2012
 Accepted Answer

To resolve this problem, open a Terminal window and use the commands below depending on your OS architecture:
For 64-bit Ubuntu:
sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6
For 32-bit Ubuntu:
sudo ln -s /lib/i386-linux-gnu/libc.so.6 /lib/libc.so.6
For using the Student Version on 64-bit:
sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib
Afterwards try starting MATLAB again.

  2 Comments

I have the same problem, but /lib64/libc.so.6 exists. I don't get it:
/usr/local/bin/matlab: 1: /usr/local/bin/util/oscheck.sh: /lib64/libc.so.6: not found
but:
locate libc.so.6
/lib/i386-linux-gnu/libc.so.6
/lib/x86_64-linux-gnu/libc.so.6
/lib32/libc.so.6
/lib64/libc.so.6
any idea ?

Sign in to comment.