You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS [e.g. Mac, Arch, Windows 10]: macOS Sonoma 14.5
Hardware: 16" 2021 M1 MacBook Pro
Node Version [e.g. 8.2.1]: 20.12.2 & 20.15.0
NPM Version [e.g. 5.4.2]: 10.5.0
C++ Toolchain [e.g. Visual Studio, llvm, g++]: gcc & libllvm
node-rdkafka version [e.g. 2.3.3]: 3.0.1
Steps to Reproduce
Simply require("node-rdkafka")
node-rdkafka Configuration Settings
n/a
Additional context
As you can see from the screenshot, I have freshly installed node-rdkafka, and upon requiring it (whether via a repl or in a project) I get this dyld[*]: missing symbol called error before the program crashes. I have libllvm and gcc installed via nix.
If I run env DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_APIS=1 DYLD_PRINT_WARNINGS=1 node -p 'require("node-rdkafka")' I get the following:
I've solved this by using a version of NodeJS from nvm instead of Nix. I suspect this matters because the version sourced from Nix does not build native node modules using gcc from Xcode. Here is a relevant issue on nixpkgs.
I had the same problem with using node-rdkafka with Bun. The problem was that I used version 1.1.6 of Bun. With bun upgrade, I've solved it successfully.
Environment Information
Steps to Reproduce
Simply
require("node-rdkafka")
node-rdkafka Configuration Settings
n/a
Additional context
As you can see from the screenshot, I have freshly installed node-rdkafka, and upon requiring it (whether via a repl or in a project) I get this
dyld[*]: missing symbol called
error before the program crashes. I have libllvm and gcc installed via nix.If I run
env DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_APIS=1 DYLD_PRINT_WARNINGS=1 node -p 'require("node-rdkafka")'
I get the following:The text was updated successfully, but these errors were encountered: