Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Support for CentOS #5780

Closed
64chevy opened this issue Mar 10, 2021 · 4 comments
Closed

[Question] Support for CentOS #5780

64chevy opened this issue Mar 10, 2021 · 4 comments

Comments

@64chevy
Copy link

64chevy commented Mar 10, 2021

Asked about this few days ago but someone closed it down. Any idea or is there hope of using Playwright on CentOS anytime soon?

@yury-s yury-s changed the title Support for CentOS [Question] Support for CentOS Mar 10, 2021
@yury-s
Copy link
Member

yury-s commented Mar 10, 2021

There are no immediate plans to support CentOS.

However, some of the scenarios might work if you manage to install missing libraries that are printed out when browser launch fails. Since the package names are different from Ubuntu you could use https://pkgs.org/ to find out which package provides each of the libraries and then do yum install. I managed to run some of the tests in Chromium using centos:8 docker image, it required xvfb-run even in headless mode: xvfb-run node run.js.

@yury-s yury-s closed this as completed Mar 10, 2021
@64chevy
Copy link
Author

64chevy commented Mar 11, 2021

These are the missing libraries. Most of them are not in CentOS 7. Anything else I can try?

      libnotify.so.4
      libvpx.so.6
      libopus.so.0
      libwoff2dec.so.1.0.2
      libharfbuzz-icu.so.0
      libgcrypt.so.20
      libgstapp-1.0.so.0
      libgstbase-1.0.so.0
      libgstreamer-1.0.so.0
      libgstpbutils-1.0.so.0
      libgstaudio-1.0.so.0
      libgsttag-1.0.so.0
      libgstvideo-1.0.so.0
      libgstgl-1.0.so.0
      libgstcodecparsers-1.0.so.0
      libgstfft-1.0.so.0
      libjpeg.so.8
      libpng16.so.16
      libwebpdemux.so.2
      libwebp.so.6
      libenchant.so.1
      libsecret-1.so.0
      libhyphen.so.0
      libicui18n.so.66
      libicuuc.so.66
      libGLESv2.so.2 

Would be great if you can help. I am actually helpless.

@ferrinweb
Copy link

I think I have solved this problem, but I am not sure whether it is suitable for the situation you encounter.
The following steps are for reference.

step 1. try yum install xxx to install each dependency such as libnotify.so.4

step 2. try yum install -y atk at-spi2-atk cups-libs libxkbcommon libXcomposite libXdamage libXrandr mesa-libgbm gtk3 to install some other libs.

step 3. try yum install alsa-lib-devel to install libasound.so.2

step 4. try yum install libxshmfence-1.3-2.el8.x86_64 to install libxshmfence.so.1 on centos 8. And yum install libxshmfence-1.2-1.el7.i686 if you are using centos 7. You can find more information about libxshmfence.so.1 in this page

Finally, at least no error will be reported, indicating that some dependencies are missing.

@ferrinweb
Copy link

ferrinweb commented Nov 14, 2021

I think I have solved this problem, but I am not sure whether it is suitable for the situation you encounter. The following steps are for reference.

step 1. try yum install xxx to install each dependency such as libnotify.so.4

step 2. try yum install -y atk at-spi2-atk cups-libs libxkbcommon libXcomposite libXdamage libXrandr mesa-libgbm gtk3 to install some other libs.

step 3. try yum install alsa-lib-devel to install libasound.so.2

step 4. try yum install libxshmfence-1.3-2.el8.x86_64 to install libxshmfence.so.1 on centos 8. And yum install libxshmfence-1.2-1.el7.i686 if you are using centos 7. You can find more information about libxshmfence.so.1 in this page

Finally, at least no error will be reported, indicating that some dependencies are missing.

Yes, it works in my situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants