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

Run on non-Ubuntu linux distros? #61

Closed
edeandrea opened this issue Jun 27, 2024 · 6 comments
Closed

Run on non-Ubuntu linux distros? #61

edeandrea opened this issue Jun 27, 2024 · 6 comments
Labels
question Further information is requested

Comments

@edeandrea
Copy link
Contributor

It seems that for Linux, Playwright only works on Ubuntu distros (see microsoft/playwright#29559 & microsoft/playwright#19458).

It seems there is somewhat of a workaround to run the Playwright server in Docker (microsoft/playwright#26482).

Is there a way to get this to work with the extension? Maybe introducing a dev service rather than assuming that playwright will run on the host machine?

@maxsonaraujo
Copy link

Note: It is not a good practice, but it works in Playwright. The best practice is to go to the official repository, download the same version, and compile it on your distribution.

However, there is something that some people do to run using different versions of libraries. I did it and, so far, I haven't had any compatibility problems. Basically, you need to create symbolic links to your libraries.

First, you run playwright install to see which dependencies you need.

image

Something like this will appear, then just run for the first item on the line:

find /usr/lib64/ -name "libpcre.so*"

The result may look like this:

image

Then you just need to create the symbolic link:

sudo ln -s /usr/lib64/libpcre.so.1 /usr/lib64/libpcre.so.3

Do this for each dependency and, in the end, run playwright install again.

Another, easier way is to use Distrobox. It works in a container and is integrated with your folders and graphic server (Wayland or X11). You will use it as a Debian subsystem integrated with your machine. For more information, visit Distrobox.

@edeandrea
Copy link
Contributor Author

Thank you for the info @maxsonaraujo . There are times though that we don't have control over the server that we are running on. That I think is the opportunity something like a dev service could play here.

A container that runs beside the app at test time, rather than on the host machine itself.

@melloware
Copy link
Contributor

@all-contributors add @edeandrea for idea

Copy link
Contributor

@melloware

I've put up a pull request to add @edeandrea! 🎉

@melloware
Copy link
Contributor

@all-contributors add @maxsonaraujo for idea

Copy link
Contributor

@melloware

I've put up a pull request to add @maxsonaraujo! 🎉

@melloware melloware added the question Further information is requested label Oct 28, 2024
@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants