So I received the exact same error after updating from ubuntu 11.10 to 12.04 both 64bit using matlab 2010a student version. To solve this problem I followed these five steps
sudo ln -s /lib/x86_64-linux-gnu/libc-2.15.so /lib/libc.so.6
- Install
libXpm4:i386
.
- Install
libXmu6:i386
.
- Install
libXp6:i386
.
- Install
libXtst6:i386
.
Here the first step is performed from the Terminal (Ctrl+Alt+T). For the last four steps, I went to the Software Center and searched for the package to be installed (e.g., libXpm4:i386
) and clicked Install.
A long form version of what led me to these five actions are described below if anyone is interested or runs into a similar but not identical problem and is looking for insight:
As suggested I followed the instructions for the student version here. I ran the command:
sudo ln -s /lib/x86_64-linux-gnu/libc-2.15.so /lib/libc.so.6
With the first error resolved I still had the error about libXpm.so.4
. I tried to make may different symbolic links to the file libXpm.so.4
found elsewhere on my system to the one in /lib
but got the error wrong ELF class: ELFCLASS64
. I think what is going wrong is that I am missing some 32-bit versions of libraries need by the 32-bit Matlab I am running. With this in mind, I went to the Software Center and searched for libXpm
and installed libXpm4:i386
which appeared to be a 32-bit version of libXpm4
which was already installed (i386
denotes a 32-bit architecture). This solved the last of the two messages above.
Attempting to run Matlab again, I then got a similar error but with libXmu.so.6
not found. I again went back to the Software Center and searched libXmu
and installed libXmu6:i386
. This action solved the new error.
Again running matlab -glnx86
, I got the error libXp.so.6 not found
, so I searched for libXp
in the Software Center and installed libXp6:i386
. This solved this latest error.
Lastly, I ran matlab -glnx86
and the splash screen appeared but it quickly closed giving the error Unable to initialize com.mathworks.mwswing.MJStartup
. After searching the web I found this page, which suggested installing libXtst
so, one last time, I went to the Software Center and installed libXtst6:i386
.
I just was trying to get my Matlab working so I do not know exactly why this fixed it but my hypothesis is that the update removed some 32-bit versions of files still needed by Matlab so I just went back and manually re-installed them.
Hope this helps!
multiarch-support
and they're located in/usr/lib/i386-linux-gnu/
. I don't have a copy of Matlab, so I can't test.