From: Marsette on
Similar problem here. Resolved by

cd /usr/lib
sudo ln -s libGL.so.1 libGL.so
sudo ln -s libGLU.so.1 libGLU.so

Marty

workaholic <liuauto(a)gmail.com> wrote in message <a01be6f4-435e-4b33-a912-e124382a8569(a)m7g2000prd.googlegroups.com>...
> I installed Matlab for Linux 7.8 under Ubuntu 8.04, but I find I can
> run Simulink, but some of the toolbox cannot work well, for example,
> SimMechanics:
> I run a sample mdl in the toolbox directory, I find this failure
> notice:
>
> MATLAB:dispatcher:loadLibrary Can't load '/opt/matlab/bin/glnx86/
> libmwmech_compiler.so': libGL.so: cannot open shared object file: no
> such file or directory
> Warning: mech_airbag.mdl, line 511: This model contains objects of
> class 'SSC.SimscapeCC'
>
> that can not be instantiated. If you save this model, the information
> associated with
>
> these objects will be lost.
>
> In general/private/openmdl at 13
>
> In open at 154
>
> In uiopen at 196
>
> MATLAB:dispatcher:loadLibrary Can't reload '/opt/matlab/bin/glnx86/
> libmwmech_compiler.so'.
>
> Warning: mech_airbag.mdl, line 523: This model contains objects of
> class
>
> 'MECH.SimMechanicsCC' that can not be instantiated. If you save this
> model, the
>
> information associated with these objects will be lost.
>
> In general/private/openmdl at 13
>
> In open at 154
>
> In uiopen at 196
>
> MATLAB:dispatcher:loadLibrary Can't reload '/opt/matlab/bin/glnx86/
> libmwmech_compiler.so'.