Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

365
Views
missing library libX11.so.6 for openjdk:12-jdk docker container

I have a Dockerfile that is from openjdk-12-jdk. In my application a dependency (https://github.com/bonigarcia/webdrivermanager) apperently requires the libX11.so.6 library, as the application fails to start with

/usr/src/app/etc/chromedriver/linux64/75.0.3770.8/chromdriver: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

I tried yum whatprovides libX11.so.6, which returned

bash-4.2# yum whatprovides libX11.so.6
Loaded plugins: ovl
libX11-1.6.5-1.el7.i686 : Core X11 protocol client library
Repo        : ol7_latest
Matched from:
Provides    : libX11.so.6



libX11-1.6.5-2.el7.i686 : Core X11 protocol client library
Repo        : ol7_latest
Matched from:
Provides    : libX11.so.6



libX11-1.6.5-1.el7.i686 : Core X11 protocol client library
Repo        : @ol7_latest
Matched from:
Provides    : libX11.so.6

So I added RUN yum -y install libX11-1.6.5-1.el7.i686 to my Dockerfile.

But the error remains and it still fails with the same error as written above.

So I tried yum install libX11.i686 directly inside of the container, but again with no success for the application

How can I get this library ? Or is this not possible with the oraclelinux, that is the basis of the openjdk-12-jdk docker ?

===== EDIT ====

as I try to start chromedriver for a selenium test, I also tried to call it headless, but also the same error occurrs

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Use the following command to add missing component:

yum -y install libX11
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!