Error while loading shared libraries: libfreetype.so.6

Error

$ ./idaq64: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory

Reason

In most of the cases, your program was asking for an i386 version of this lib file, while you only have a 64-bit version. So the program can not find it.

Solution

The missing libraries are:

$ sudo apt-get install libgtk2.0-0:i386 libidn11:i386 libglu1-mesa:i386

Reference

[ask Ubuntu] error while loading shared libraries; cannot open shared object file: No such file or directory

[xhyumiracle.com] Error while loading shared libraries: libgthread-2.0.so.0