1

I tried to run a compiled matlab code which gave me the following error:

.....libmwmclmcr.so Error: libXp.so.6: cannot open shared object file: No such file or directory

I found here that newer versions of ubuntu don't have libXp.so.6, so I decided to install it from here. To check this I ran locate libXp.so.6 giving me:

/usr/lib/i386-linux-gnu/libXp.so.6
/usr/lib/i386-linux-gnu/libXp.so.6.2.0

This seemed to look good, however when I run the code again I still have the same error. Similarly when I call ldd /home/rick/Desktop/tico/tico/v74/bin/glnx86/libmwmclmcr.so:

.....
libICE.so.6 => not found
libSM.so.6 => not found
libXp.so.6 => not found
libXt.so.6 => not found
.....

I can't figure out why it is installed but libmwmclmcr.so cannot locate it?

N0rbert
  • 103,263
CodeNoob
  • 113
  • 1
  • 7

1 Answers1

1

In MATLAB notation the glnx86 means 32-bit.

So you need to install 32-bit libraries from Ubuntu and Debian Jessie repositories

sudo apt-get install libice6:i386 libsm6:i386 libxt6:i386

cd ~/Downloads
wget http://ftp.debian.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_i386.deb
sudo apt-get install ./libxp6_1.0.2-2_i386.deb

and then retry to launch tico.

N0rbert
  • 103,263