Open Dhamo1107 opened 1 week ago
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: https://github.com/karafka/rdkafka-ruby/issues/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.
Thanks for the Information @Fryguy
@Dhamo1107 Just last week I was working on this, check https://github.com/karafka/rdkafka-ruby/issues/188#issuecomment-2198959523, any advice is welcome.
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.
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'
ruby - ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x64-mingw-ucrt]