cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.97k stars 3.18k forks source link

Getting cypress to run on redhat 6.9 #1148

Closed BasieP closed 6 years ago

BasieP commented 6 years ago

In our (goverment) organisation we have to work with 'standard' linux machines. These are (unfortunately) Redhat 6.9.

I read the documentation about dependencies (https://on.cypress.io/required-dependencies) but they are only written for apt, and on redhat we have to use yum rpm's. Now thanks to an other issue: (https://github.com/cypress-io/cypress/issues/660) i have been able to install yum equivalents to the apt packages, but that issue was made for Redhat 7. (which doesn't run on our network since we have a .local tld)

The installation of the additional packages did solve some of the errors i got. But not all. Unfortunate i still get this error:

/test/node_modules/cypress/dist/Cypress/Cypress: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /test/node_modules/cypress/dist/Cypress/Cypress)
/test/node_modules/cypress/dist/Cypress/Cypress: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /test/node_modules/cypress/dist/Cypress/Cypress)
/test/node_modules/cypress/dist/Cypress/Cypress: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by /test/node_modules/cypress/dist/Cypress/Cypress)
/test/node_modules/cypress/dist/Cypress/Cypress: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /test/node_modules/cypress/dist/Cypress/libnode.so)

Is this something i can install? if so, what rpm should i use?

Desired behavior:

working Cypress on redhat 6.9

bahmutov commented 6 years ago

you can try to run Cypress (or just plain Electron) on your system and keep adding missing dependencies until it starts. Take a look at our Docker images https://github.com/cypress-io/cypress-docker-images (like centos, ubuntu) for inspiration. I don't know how rpm installs would be equivalent to apt.

davified commented 5 years ago

Thanks @bahmutov. The link to https://github.com/cypress-io/cypress-docker-images helped me fix the missing dependencies issues i discovered when I was trying to run cypress tests on RHEL 7.4

I think it would be helpful if we could add a line in the CI::Dependencies section to list the dependencies for centos/redhat boxes. (yum install gtk2 libXtst libXScrnSaver GConf2 alsa-lib) We also found that we needed to run yum update glib2 (see link))

Or at the very least, a reference to the cypress-docker-images repo would be helpful.

asherccohen commented 5 years ago

Same here, spent all afternoon finding the CentOs libraries equivalent to deb packages suggested in docs.

I confirm: yum install - y xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 fixed dependencies. Maybe run as sudo depending on your setup. -y useful to automatically accept CLI requests.

Also teamcity is very popular so adding a section specifically for this CI would be useful.

aonamrata commented 4 years ago

also I had to install yum install gtk3 for the latest version

hanukatreddy commented 4 years ago

yum install - y xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2

I am not able to find equivalent dependencies for RHEL 6. please confirm, you got equivalent packages on rpm?