Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chromedriver on Ubuntu 14.04 - error while loading shared libraries: libui_base.so

I installed chromium-chromedriver from official ubuntu repository, but when I try to run the binary or invoke it from java library I always got the following error:

/usr/lib/chromium-browser/chromedriver: error while loading shared libraries: libui_base.so: cannot open shared object file: No such file or directory

This is not a duplicate of Chromedriver on Ubuntu 12.04 - Error while loading shared libraries: libXi.so.6

as missing library names are different. And I have tried using their solution which doesn't work.

Any one encounter the same problem?

like image 934
tribbloid Avatar asked Sep 05 '14 23:09

tribbloid


1 Answers

libui_base.so is provided by Chromium itself, it exists in /usr/lib/chromium-browser/libs.

To resolve issue we need to add this path to LD_LIBRARY_PATH. Or, I created chrome_lib.conf file in /etc/ld.so.conf.d/ folder, containing simply this path.

/etc/ld.so.conf.d/chrome_lib.conf:

/usr/lib/chromium-browser/libs

Then run $sudo ldconfig After this chromedriver runs successfully.

like image 50
Valters Vingolds Avatar answered Nov 04 '22 10:11

Valters Vingolds