-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Can't build v13.0.0+ from source without g++
and make
#27846
Comments
Hi @alexsch01 When I set this up for Ubuntu 22.04 I installed: sudo apt install make
sudo apt install build-essential
sudo apt install cmake I don't know if this is exactly the same for your OS and if that will help you. You write Node.js
|
I checked on Ubuntu 22.04 and using Node.js |
@MikeMcC399 This should be in the CONTRIBUTING file if these packages are needed for Cypress to build This is only an issue since v13.0.0 |
Did that solve your issue? I didn't feel experienced enough to make suggestions to change the CONTRIBUTING > Requirements section in this regard, especially as the Cypress build is very complex and I don't really understand a lot of what it does. |
Yes, it did solve the issue. But this isn't documented in the CONTRIBUTING file @jennifer-shehane Summary: |
make
, build-essential
, and cmake
make
, build-essential
, and cmake
make
, build-essential
, and cmake
@alexsch01 We're open to a PR to update the contributing guide to reflect this. |
I can update the contributing guide if nobody else is working on this |
I was going to make an attempt, but I'd be happy if you want to do it. My suggestion would be to add the following to the bottom of the list below
as it is not covered by the
|
Thank you @MikeMcC399! That sounds accurate and concise |
make
, build-essential
, and cmake
g++
and make
g++
and make
cmake
, g++
and make
cmake
, g++
and make
g++
and make
As far as I can see whilst cross-checking on Ubuntu
ReproTo demonstrate: sudo apt remove g++ cmake
sudo apt install gcc make
sudo apt autoremove
git clone https://github.com/cypress-io/cypress
cd cypress
git checkout v12.17.4
n auto # or similar to set node to 16.16.0
yarn # error messages note that g++ and cmake are missing
git checkout v13.0.0
n auto # or similar to set node to 16.16.0
yarn # error messages note that g++ and cmake are missing Now run again after executing sudo apt install g++ cmake |
@MikeMcC399 On Debian, installing On other operating systems like Mac I don't know how that works |
Thank you for that hint. I will suggest a change to the PR in that case. |
@MikeMcC399 I meant that the install command should have g++, make, and cmake for the good path |
Well I checked: sudo apt remove g++ gcc cmake make
sudo apt install g++ cmake and that was OK for If you know some reason why: sudo apt install g++ cmake is not enough then please let us know. |
Just being more explicit since make is not technically a dependency of cmake |
I've reverted the suggestion to remove |
@MikeMcC399 just did, thanks for the reminder |
It is suggested to add the following line to the document:
|
|
Current behavior
I ran
npm i -g yarn
I ran
git clone https://github.com/cypress-io/cypress
I ran
cd cypress
I ran
yarn
This works for versions v12.17.4 and below, but fails for versions v13.0.0 and up
Debug logs
Without
g++
installedWithout
make
installedCypress Version
develop - 2247ffd
Node version
v18.18.0
Package Manager
yarn
Package Manager Version
1.22.19
Operating system
Linux
Operating System Version
Non-documented fix
Installing
g++
andmake
packages seem to be required as of v13.0.0 in order to build Cypress from source - this was not the case with v12.17.4 and earlier versionsOther
If the above packages are intended to be required now, the CONTRIBUTING file should be updated to state this
The text was updated successfully, but these errors were encountered: