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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.