-
Notifications
You must be signed in to change notification settings - Fork 398
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
With reference to issue #481, the suggested solution fails with 'fatal error: 'rdkafkacpp.h' file not found' #937
Comments
I am facing the same issue on my 2021 M1 MacBook Pro. I had tried to install the normal way of export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
npm install node-rdkafka and receive the following error brew install librdkafka
BUILD_LIBRDKAFKA=0 npm install node-rdkafka and resulting in the missing header error. |
Same exact issue. |
I faced the same issue. This is because for M1 chip, The solution that works for me:
|
THANK YOU! Iv spent over a month off and on trying to get this to work on my local machine. Then in the ARM terminal run the lines below. |
To solve this in my case, I had to install the homebrew x86 version to allow me to install the lz4 with x86 architecture. You can install homebrew x86 by following this guideline. After this all I had to do when performing npm install, is to tell the GCC compiler: “Hey, please utilize the x86 version of the lz4”. You can accomplish this by informing the lz4 x86 path in the LDFLAGS (gcc known env variable) In my case I did:
Relates to #481 |
# ➜ ln -s /opt/homebrew/opt/openssl /usr/local/opt/openssl |
Environment Information
Steps to Reproduce
npm install node-rdkafka
Additional context
While trying to install node-rdkafka, faced this issue & tried the solution, but now there's a linking issue.
The error states:
~/node_modules/node-rdkafka/src/binding.h:15:10: fatal error: 'rdkafkacpp.h' file not found
#include "rdkafkacpp.h"
^~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered: