-
Notifications
You must be signed in to change notification settings - Fork 894
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
Install librdkafka dependency on Mac OSX #6
Comments
@mikesparr Thanks for the note. I'm going to close this since what we need is a change in homebrew, but the comment will still be discoverable by search for anyone who runs into the same issue. In fact, I'd suggest just submitting that patch to homebrew if you haven't already! |
Thanks @ewencp and yes I figure just in case folks need to search for it. Possibly will share in Stack Overflow just in case. I'm unsure how to generate the bottles and checksums for the different Mac OS versions like in original so was hesitant to commit to the repo given I commented out that section. I'll research how to contribute though indeed. |
@mikesparr can you tell me the sequence of commands to install librdkafka on Mac ? Thanks! |
I believe I used Homebrew so @ksachdeva11 if you see my Gist link above, that is my update to the Homebrew formulae that you run locally ( |
@mikesparr Is there a way to uninstall |
Installing
|
Usually it's a typo or indentation issue. I'd recommend downloading the RAW format of Gist and editing and retrying. Otherwise, every environment is unique so you'll have to trial/error. I'm on a new Macbook Pro w/ Touchbar and Sierra |
@mikesparr Do I need to edit |
Google is your friend. ;-) If you use Homebrew you can
Most of us learn through trial/error and Google searching for answers and I apologize but I don't have time to teach 3rd-party tool usage. If something is not working, comment it out and try again and if error messages, Google for them and you'll find most answers on Stack Overflow or similar sites where people have faced same thing. |
Unable to install confluent-kafka on OS X because it doesn't detect librdkafka as installed by homebrew :( |
@rjurney Can you provide the output of the Also paste the output from Thanks |
I am using librdkafka 0.11 and still unable to get this issue resolved. The details of my
The error line is
|
That's odd, can you paste the full output from the confluent_kafka python installation? |
My version is
|
Looks like Python is not making use of the homebrew installation location (which should be linked to /usr/local/), try fixing the homebrew package with
|
Including the right paths did help me install, although in a |
Including the paths was the only thing that worked for me in the |
Adding the environment variables also worked for me. On macOS Monterey, they might be a little different though. Following worked for me:
|
@jensneuhaus That's not a very good solution since you'll have to do that for every single version and library you install. Here's the generic solution:
As configured by https://github.com/haf/macos |
I was unable to install this via PIP on my Mac given the latest Homebrew formula for
librdkafka
was only up to 0.9 and I saw errors during PIP install. To solve I edited the Homebrew formula forlibrdkafka
to download the latest version. After that, the PIP install worked without errors.You can type:
brew edit librdkafka
and then paste in content abovebrew unlink librdkafka
before installing new versionsetup.py
file add dependencyconfluent-kafka
and then runpython setup.py install
(or with sudo)Good luck!
The text was updated successfully, but these errors were encountered: