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

CMake error on MacOS when building airnode image #2020

Open
Shr1ftyy opened this issue Sep 18, 2024 · 0 comments · May be fixed by #2021
Open

CMake error on MacOS when building airnode image #2020

Shr1ftyy opened this issue Sep 18, 2024 · 0 comments · May be fixed by #2021

Comments

@Shr1ftyy
Copy link

On certain systems (i.e. MacOS on Apple Silicon), the docker images used to build images when running yarn:build:local don't appear to have CMake and a C++ compiler toolset installed by default. This issue was noted on the API3 discord server.

The error below:

ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
tar perform step failed withError: CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
/build/node_modules/aws-crt/node_modules/cmake-js/lib/cMake.js:117
        throw new Error("CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.");
              ^

Error: CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
    at CMake.verifyIfAvailable (/build/node_modules/aws-crt/node_modules/cmake-js/lib/cMake.js:117:15)
    at CMake.build (/build/node_modules/aws-crt/node_modules/cmake-js/lib/cMake.js:293:10)
    at BuildSystem._invokeCMake (/build/node_modules/aws-crt/node_modules/cmake-js/lib/buildSystem.js:70:40)
    at async Object.buildSource (/build/node_modules/aws-crt/scripts/build_dependencies/build_step_cmake.js:34:9)
    at async Object.performStep (/build/node_modules/aws-crt/scripts/build_dependencies/build_step_cmake.js:22:13)
    at async buildFromRemoteSource (/build/node_modules/aws-crt/scripts/build.js:66:9)
...

shows up shortly after this:

Running NPM registry container. Name: airnode-npm-registry-a5ef83ee, URL: http://172.17.0.3:4873

NPM registry container name: airnode-npm-registry-a5ef83ee
NPM registry URL: http://172.17.0.3:4873
$ yarn docker:scripts:npm:publish-snapshot:mount --npm-registry local --npm-tag local
$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/airnode api3/airnode-packaging:latest npm publish-snapshot --npm-registry local --npm-tag local
@Shr1ftyy Shr1ftyy linked a pull request Sep 18, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant