node-rdkafka icon indicating copy to clipboard operation
node-rdkafka copied to clipboard

Build error when installing the module

Open KingStar1001 opened this issue 1 year ago • 5 comments

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 avatar Nov 30 '23 11:11 KingStar1001

Is there any solution for that?

KingStar1001 avatar Dec 05 '23 09:12 KingStar1001

I'm having the same issue

sahilshahane avatar Dec 29 '23 06:12 sahilshahane

same here

mateuslacorte avatar Jan 18 '24 13:01 mateuslacorte

Same here!

zach-morgan avatar May 23 '24 18:05 zach-morgan

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?

martijnimhoff avatar May 24 '24 07:05 martijnimhoff