/usr/local​/MATLAB/R2​011a/bin/u​til/oschec​k.sh: 605: /lib64/libc.so.6: not found

My MATLAB R2011a installation on Ubuntu 11.04 64-bit gives the following warning when starting up:
/usr/local/MATLAB/R2011a/bin/util/oscheck.sh: 605: /lib64/libc.so.6: not found
The library in question is installed on the system:
$ locate libc.so
/lib/x86_64-linux-gnu/libc.so.6
/lib32/libc.so.6
/usr/lib/x86_64-linux-gnu/libc.so

 채택된 답변

Gerhard Burger
Gerhard Burger 2011년 7월 9일

6 개 추천

I had the same problem, you can make a symbolic link to the location matlab expects it to be with the following command:
ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6
hope this helps!

댓글 수: 3

This worked for me. Thanks
Thanks! This is an obvious and working workaround for this issue.
It doesn't work for 2010b in ubuntu 11.10

댓글을 달려면 로그인하십시오.

추가 답변 (7개)

Walter Roberson
Walter Roberson 2011년 6월 23일

0 개 추천

I don't know about Ubuntu 11.04 systems, but the Ubuntu 10.04 system I am using has /lib64/libc.so.6
Unfortunately I do not know enough about packages to query which package it came as part of.

댓글 수: 1

For ubuntu http://packages.ubuntu.com/search will let you search package contents (you need to change the option).

댓글을 달려면 로그인하십시오.

rjarvinen
rjarvinen 2011년 10월 18일

0 개 추천

Just to report that the same problem exist still for a fresh install of the latest MATLAB on the latest Ubuntu. The above workaround still works ok.
MATLAB version: R2011b (7.13.0.564) 64-bit (glnxa64) August 13, 2011
Ubuntu version: 11.10 (oneiric) 64-bit
Daniel Shub
Daniel Shub 2011년 10월 18일

0 개 추천

For Arch Linux the package glibc provides lib/libc.so.6 for both x86_64 and i686 architectures.
For Debian Squeeze the package libc6 provides /lib/libc.so.6 for all but ia64 architectures. The libc6-amd64 provides /lib64/libc.so.6 for the i386 architecture.
For Ubuntu Oneiric it is too crazy to describe (just look at the search).
I don't know how to search rpm based distros (and I don't think people care enough to learn the results).
kabel
kabel 2011년 10월 20일

0 개 추천

The solution
"ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6"
for Matlab 2010b 64-bit in Ubuntu 11.10 does not work. What else i could do?
The error message is the same:
"/usr/local/MATLAB/R2010b/bin/util/oscheck.sh: 605: /lib64/libc.so.6: not found"
Thanks

댓글 수: 2

You may need to use "sudo":
sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6
I had the same issue. Apparently, libc.so.6 was in the right place but it was broken so I had to remove it then re-implement the work around with sudo.
Open a terminal to /lib64 and try:
sudo rm libc.so.6
sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6
I blame it on Unity :-P

댓글을 달려면 로그인하십시오.

Gerhard Burger
Gerhard Burger 2011년 10월 20일

0 개 추천

if for some reason the solution I gave above does not work, try to see where the libc.so.6 files are on your system by executing
locate libc.so.6
then change the first argument in the solution, otherwise see the info Daniel posted.
edit: and of course sudo, thanks for reminding me Riku Jarvinen
Milos
Milos 2011년 12월 16일

0 개 추천

The problem is that in Ubuntu 11.10 things got further complicated. This command that did the trick for me (Kubuntu 11.10 64-bit):
sudo ln -s /lib/x86_64-linux-gnu/libc-2.13.so /lib64/libc.so.6
It's because /lib/x86_64-linux-gnu/libc.so.6 is a symbolic link to /lib/x86_64-linux-gnu/libc-2.13.so Hope this helps.

댓글 수: 1

I don't see why you couldn't just link to /lib/x86_64-linux-gnu/libc.so.6. Do you know what package creates the link? What does the libc6 package, or its approriate extenstions for you system, do?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

질문:

2011년 6월 23일

편집:

2013년 10월 11일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by