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

Not able to install the manageiq-messaging gem #91

Open
Dhamo1107 opened this issue Jun 25, 2024 · 6 comments
Open

Not able to install the manageiq-messaging gem #91

Dhamo1107 opened this issue Jun 25, 2024 · 6 comments
Assignees
Labels

Comments

@Dhamo1107
Copy link

  1. I tried to set up the development environment for the ManageIQ repository. After cloning the repository, I ran the bundle install command, but the manageiq-messaging gem failed to install and showed an error related to librdkafka. Then, I tried to install the rdkafka gem, but I encountered an error with that as well.

  2. Steps to reproduce:

bundle install
Running 'configure' for librdkafka 2.3.0... ERROR. Please review logs to see what happened: contents of 'C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rdkafka-0.16.0/ext/tmp/x86_64-w64-mingw32/ports/librdkafka/2.3.0/configure.log' mklove/modules/configure.base: line 2126: source: configure.self: file not found end of file contents of 'config.log'

gem install manageiq-messaging
Extracting v2.3.0 into tmp/x86_64-w64-mingw32/ports/librdkafka/2.3.0... OK Running 'configure' for librdkafka 2.3.0... ERROR. Please review logs to see what happened: ----- contents of 'C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rdkafka-0.16.0/ext/tmp/x86_64-w64-mingw32/ports/librdkafka/2.3.0/configure.log' ----- mklove/modules/configure.base: line 2126: source: configure.self: file not found ----- end of file ----- ----- contents of 'config.log' ----- DBG 966: tput reports color support: true DBG 966: Using color escape sequences from tput

gem install rdkafka -v '0.8.1' --source 'https://rubygems.org/'
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:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rdkafka-0.8.1/ext C:/Ruby31-x64/bin/ruby.exe -IC:/Ruby31-x64/lib/ruby/site_ruby/3.1.0 -rrubygems C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rake-13.2.1/exe/rake RUBYARCHDIR\=C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/rdkafka-0.8.1 RUBYLIBDIR\=C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.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. Please review logs to see what happened: ----- contents of 'C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rdkafka-0.8.1/ext/tmp/x86_64-w64-mingw32/ports/librdkafka/1.4.0/configure.log' mklove/modules/configure.base: line 2047: source: configure.self: file not found end of file contents of 'config.log'

  1. Describe your environment, including
    • Windows
    • bundler version - 2.4.4 , ruby - ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]
@Dhamo1107 Dhamo1107 added the bug label Jun 25, 2024
@Fryguy
Copy link
Member

Fryguy commented Jun 25, 2024

Thanks for the details @Dhamo1107 - looks like rdkafka is where the breakdown occurs. I do see that librdkafka, the underlying C/C++ library is portable and should support Windows, but rdkafka doesn't support WIndows at the moment. See this issue: karafka/rdkafka-ruby#188. So, at this point, someone would need to add Windows support to rdkafka. It might be useful to comment in that issue expressing interest, but they will likely ask for contributions over building it themselves.

@Fryguy Fryguy self-assigned this Jun 26, 2024
@Dhamo1107
Copy link
Author

Thanks for the Information @Fryguy

@sirzeta
Copy link

sirzeta commented Jul 1, 2024

@Dhamo1107 Just last week I was working on this, check karafka/rdkafka-ruby#188 (comment), any advice is welcome.

@Dhamo1107
Copy link
Author

@sirzeta I am getting the same error even after following these instructions karafka/rdkafka-ruby#188 (comment)

@sirzeta
Copy link

sirzeta commented Jul 29, 2024

@sirzeta I am getting the same error even after following these instructions karafka/rdkafka-ruby#188 (comment)

@Dhamo1107 After certain tests, still giving problems, unfortunately fix it is out of my "Windows" knowledge right now.

@Dhamo1107
Copy link
Author

@sirzeta Anyway, thank you for your Support!

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

No branches or pull requests

3 participants