Skip to content
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 fails on windows for all versions #188

Closed
benmollet opened this issue Mar 17, 2022 · 5 comments
Closed

Install fails on windows for all versions #188

benmollet opened this issue Mar 17, 2022 · 5 comments

Comments

@benmollet
Copy link

I'm trying to install the gem on windows with:

gem install rdkafka -v '0.8.1'

(I tried all newer versions as well)

But it fails with the following:

PS C:\code> gem install rdkafka -v '0.8.1'
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing rdkafka:
ERROR: Failed to build gem native extension.

current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rdkafka-0.8.1/ext

C:/Ruby27-x64/bin/ruby.exe -IC:/Ruby27-x64/lib/ruby/2.7.0/rubygems -rrubygems C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rake-13.0.6/exe/rake RUBYARCHDIR=C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/rdkafka-0.8.1 RUBYLIBDIR=C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/rdkafka-0.8.1

Extracting v1.4.0 into tmp/x86_64-w64-mingw32/ports/librdkafka/1.4.0... OK
Running 'configure' for librdkafka 1.4.0... ERROR, review 'C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rdkafka-0.8.1/ext/tmp/x86_64-w64-mingw32/ports/librdkafka/1.4.0/configure.log' to see what happened. Last lines are:

mklove/modules/configure.base: line 2047: source: configure.self: file not found

rake aborted!
Failed to complete configure task

Tasks: TOP => default
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rdkafka-0.8.1 for inspection.
Results logged to C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/rdkafka-0.8.1/gem_make.out

Any help would be appreciated :)

@thijsc
Copy link
Collaborator

thijsc commented Mar 30, 2022

I don't believe we've tested this gem on Windows so far. You're not using the linux base system right?

@benmollet
Copy link
Author

No, I tried this on regular windows

@benmollet
Copy link
Author

@thijsc any thoughts on what might cause this?

@thijsc
Copy link
Collaborator

thijsc commented Jul 8, 2022

I have no clue honestly. I don't have access to any Windows machines that I can test with. I guess we could add a windows build to our CI. Would you be willing to work on that?

@mensfeld
Copy link
Member

Closing due to lack of activity. If anyone is willing to add Windows, happy to accept contributions. WSL works to the extend of my knowledge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants