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

  • post the output of apt-cache policy libsm6
    – A.B.
    Apr 21, 2015 at 8:23
  • libsm6: Installed: 2:1.2.1-2 Candidate: 2:1.2.1-2 Version table: *** 2:1.2.1-2 0 500 lk.archive.ubuntu.com/ubuntu trusty/main amd64 Packages 100 /var/lib/dpkg/status Apr 21, 2015 at 12:40
  • and ldconfig -p | grep libSM.so.6?
    – A.B.
    Apr 21, 2015 at 12:44
  • libSM.so.6 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libSM.so.6 Apr 21, 2015 at 12:50

1 Answer 1


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:i386

And 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.6

And 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
  • Now I'm getting new error ./qt-linux-opensource-5.0.2-x86-offline.run: error while loading shared libraries: libXrender.so.1: cannot open shared object file: No such file or directory Apr 21, 2015 at 13:07
  • I have improved my answer. :)
    – A.B.
    Apr 21, 2015 at 13:10
  • I saw it later :) I found about this command sudo apt-get install qtcreator It installed the qtcreator but I'm worried because terminal said size is 100 MB or something but offline installer 465 MB. What is different between them? Apr 21, 2015 at 16:19
  • @MenukaIshan I can not answer satisfactorily you. Without the right to look at, I can only guess.
    – A.B.
    Apr 21, 2015 at 16:45
  • @MenukaIshan Were you satisfied with my answer? Then give me a upvote (∧). If I could solve your problem, then it would be nice if you'd mark my answer (✓). ;)
    – A.B.
    Apr 21, 2015 at 16:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.