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

Build error when installing the module #1058

Open
KingStar1001 opened this issue Nov 30, 2023 · 5 comments
Open

Build error when installing the module #1058

KingStar1001 opened this issue Nov 30, 2023 · 5 comments

Comments

@KingStar1001
Copy link

Environment Information

  • OS : Mac Ventura 13.4
  • Node Version : 18.18.2
  • NPM Version : 9.8.1
  • C++ Toolchain : 14.0.3 (clang-1403.0.22.14.1)
  • node-rdkafka version : 2.18.0

Steps to Reproduce

when try to install node-rdkafka, it occurs build issue.

npm ERR! make: *** [Release/obj.target/node-librdkafka/src/binding.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/Users/vlad/.nvm/versions/node/v18.18.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm ERR! gyp ERR! System Darwin 22.5.0
npm ERR! gyp ERR! command "/Users/vlad/.nvm/versions/node/v18.18.2/bin/node" "/Users/vlad/.nvm/versions/node/v18.18.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/vlad/Documents/kafka-project/node_modules/kafka-avro/node_modules/node-rdkafka
npm ERR! gyp ERR! node -v v18.18.2
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok

@KingStar1001
Copy link
Author

Is there any solution for that?

@sahilshahane
Copy link

I'm having the same issue

@mateuslacorte
Copy link

same here

@zach-morgan
Copy link

Same here!

@martijnimhoff
Copy link
Contributor

Same here!

@zach-morgan are you using exactly the same version (2.18.0) and OS?

Also did you install the required build tools gcc, g++ and make?

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

No branches or pull requests

5 participants