Jul 23, 2014

64-bit Linux libXi.so.6 and libXtst.so.6 error fix

If you're running 64 bit Linux and you're receiving an error saying the file is not found, you may need the 32 bit files below.

Copied from the two sites below for reference:


$ sudo apt-get update
$ sudo apt-get install libxtst6
if this isn't OK.
$ sudo updatedb
$ locate libXtst
it should return something like:
/usr/lib/x86_64-linux-gnu/libXtst.so.6       # Mine is OK
If you do not have libXtst.so.6 but do have libXtst.so.6.X.X create a symbolic link:
$ cd /usr/lib/x86_64-linux-gnu/
$ ln -s libXtst.so.6 libXtst.so.6.X.X
Hope this helps.



libXi.so.6 is provided by libxi6. Chromedriver will then also ask for libgconf-2-4 with a similar message.
sudo apt-get install libxi6 libgconf-2-4
Whenever facing an issue of missing a specific file apt-file comes to rescue:
$ apt-file search libXi.so.6
libxi6: /usr/lib/x86_64-linux-gnu/libXi.so.6
libxi6: /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
libxi6-dbg: /usr/lib/debug/usr/lib/x86_64-linux-gnu/libXi.so.6.1.0
This can be installed via apt-get:
sudo apt-get install apt-file && apt-file update  # install and fill the index