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

[Feature] Use C/C++ package manager like microsoft/vcpkg to manage C/C++ dependency #22577

Closed
loynoir opened this issue Apr 23, 2023 · 2 comments

Comments

@loynoir
Copy link

loynoir commented Apr 23, 2023

Let us know what functionality you'd like to see in Playwright and what your use case is.
Do you think others might benefit from this as well?

Feat
Use C/C++ package manager like microsoft/vcpkg to manage C/C++ dependency

BUG

$ sudo npx playwright install-deps
BEWARE: your OS is not officially supported by Playwright; installing dependencies for Ubuntu as a fallback.
Installing dependencies...
Switching to root user to install dependencies...
sh: line 1: apt-get: command not found
Failed to install browser dependencies
Error: Installation process exited with code: 127
$ npm exec -- playwright test
...
    Error: browserType.launch: 
     ...
    ║ Host system is missing dependencies to run browsers. ║
    ║ Missing libraries:    
...

Link

https://playwright.dev/docs/troubleshooting#linux

Linux
Depending on your Linux distribution, you might need to install additional dependencies to run the browsers.
note
Only Debian 11, Ubuntu 20.04 and 22.04 are officially supported.

Related

@loynoir
Copy link
Author

loynoir commented Apr 23, 2023

ArchLinux user day 1 on playwright

$ sudo pacman -S gtk3 alsa-lib libxcomposite libxdamage libxrandr fontconfig pango at-spi2-core cairo gdk-pixbuf2 dbus-glib libxcursor 
$ npm exec -- playwright test --project=firefox

Running 2 tests using 2 workers
  2 passed (13.9s)

To open last HTML report run:

  npx playwright show-report

Seems working.

PS: I'm running within devcontainer, so no dependency should be missing.

Dependency List

gtk3 alsa-lib libxcomposite libxdamage libxrandr fontconfig pango at-spi2-core cairo gdk-pixbuf2 dbus-glib libxcursor

Additional for chromium

nss nspr

@aslushnikov
Copy link
Collaborator

@loynoir I'm sorry, but ArchLinux is not currently supported by Playwright. The demand for the OS is tracked in the #8100 - please, upvote that bug to bump it's priority. I'll close this one instead of the earlier one.

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

2 participants