-
Notifications
You must be signed in to change notification settings - Fork 13
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
Installation error on M1 / Sonoma: RdKafka.cpp:29:10: fatal error: 'string' file not found #126
Comments
Sorry I missed that one. Let me take a look |
It seems to be using preinstalled librdkafka cpp instead of librdkafka.c shipped with karafka-rdkafka 🤔 |
@mdesantis what gcc version is that? |
@mensfeld here you are:
|
@nijikon your version pretty plz? 🙏 |
It's a macos update issue that is not including correct stuff for CPP. You mind trying with this flag set?
|
Putting this into .zshrc helps:
|
It worked, many thanks! |
Glad to help!
|
FYI, I just updated to latest OSX, Sequoia 15.1 and updated the command line tools. I needed to add this to my
In EDIT:
A better long term solution would be nice. I'm not sure if it's specifically where libraries are installed on arm apple silicon and that conflicting with a change that occurred in the CommandLineTools from apple or something else that's causing a problem here. |
Do you guys have an idea how I can automatically detect this so I could just automate this instead of relying on you remembering to alter that? |
I updated my comment above as setting the CPPFLAGS globally to workaround this issue introduced another problem with prism. See above. |
@jrafanie yeah that's why I wonder if we can detect this somehow and inject this on demand 🤔 |
@mensfeld What can I run to provide more debugging? It's easy for me to install it with and without the CPPFLAGS to get it succeed or fail. It would be nice to have other bug reports to see if it's truly unique to sonoma/sequoia and M1. Maybe non-homebrew macs on M1 on sonoma/sequoia. There's some discussion of other issues with GCC on newer mac sdks: Homebrew/homebrew-core#194778 (comment) Let me know what I can do to help. Thanks! |
For more info on this, it seems to only fail when you're using CommandLineTools gcc vs XCode gcc. You can check which you're using with
If you've got XCode installed and up-to-date, you can probably switch to it and not need to override CPPFLAGS:
|
@fusion2004 any chance you could PR a fix for this? :) |
No, I'm not sure what a proper fix to support both would be, unfortunately lol. We've updated our application's setup scripts to ensure folks are using Xcode instead of CommandLineTools instead. |
Thank you for the fix! 🥇 I had the same issue. |
Hi,
I'm having troubles trying to install
karafka-rdkafka
on Mac OS X. It's complaining about a missing C++ header, I guess. I googled the error but no luck. Am I the only one experiencing it? Here is the output:The text was updated successfully, but these errors were encountered: