Blizzard / node-rdkafka

Node.js bindings for librdkafka
MIT License
2.08k stars 391 forks source link

Build error when installing the module #1058

Open KingStar1001 opened 7 months ago

KingStar1001 commented 7 months ago

Environment Information

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 commented 7 months ago

Is there any solution for that?

sahilshahane commented 6 months ago

I'm having the same issue

mateuslacorte commented 6 months ago

same here

zach-morgan commented 1 month ago

Same here!

martijnimhoff commented 1 month ago

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?