Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chromedriver on Ubuntu 12.04 - Error while loading shared libraries: libXi.so.6

Tags:

I downloaded the 32-bit chromedriver version on my Ubuntu 12.04 machine.

However, it won't run and exits with the following message. I have searched various places on the internet but failed to find a solution.

./chromedriver: error while loading shared libraries: libXi.so.6: cannot open shared object file: No such file or directory
like image 689
KJW Avatar asked Apr 07 '14 22:04

KJW


1 Answers

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
like image 67
bartekbrak Avatar answered Sep 28 '22 01:09

bartekbrak