Skip to content

bug: error when running yarn - cmake: command not found #198

@TillaTheHun0

Description

@TillaTheHun0

Stacktrace:

/Users/tyler/Development/hyper/hyper63/node_modules/zeromq/build/Release/../../script/build.sh: line 60: cmake: command not found
make: *** [libzmq/lib] Error 127
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/tyler/.nvm/versions/node/v16.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:365:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Darwin 20.3.0
gyp ERR! command "/Users/tyler/.nvm/versions/node/v16.2.0/bin/node" "/Users/tyler/.nvm/versions/node/v16.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/tyler/Development/hyper/hyper63/node_modules/zeromq

Steps to reproduce:

run yarn to install dependencies

Background:

When installing dependencies using yarn, I encountered the error above. zeromq, a dependency of the adapter-zeromq package, has a postinstall step that requires cmake to be available. However, OSX does not have cmake installed by default and thus causes an error.

Gitpod installs cmake as part of the image it uses to create development environments, so we don't run into this issue there.

Solution

I doubt core team will run into this issue, since we primarily use Gitpod, but contributors who develop locally may run into this issue. We should add installing cmake to contributor documentation or figure out another solution.

Workaround

Installing cmake resolved the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions