when i trying to ran qt-linux-opensource-5.0.2-x86-offline.run I gets below error.
./qt-linux-opensource-5.0.2-x86-offline.run: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory
I have installed Qt before but I didn't get any error. I think the cause should below command
sudo apt-get autoremove
I ran this command to my newly installed ubuntu. I found this article online
so I ran below command
sudo apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1 libcups2
but terminal says its already installed
libsm6 is already the newest version
can anyone tell me a way to install qt creater
41 Answer
libSM.so.6 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libSM.so.6
The program requires 32-bit libraries. You need libsm6:i386
sudo apt-get install libsm6:i386And now, ldconfig -p | grep libSM.so.6 should look like this:
libSM.so.6 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libSM.so.6
libSM.so.6 (libc6) => /usr/lib/i386-linux-gnu/libSM.so.6And for all other missing libraries use the same strategy:
e.g. libXrender.so.1
$ apt-file search libXrender.so.1
libxrender1: /usr/lib/x86_64-linux-gnu/libXrender.so.1
libxrender1: /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
libxrender1-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
$ sudo apt-get install libxrender1:i386 8