Error: Failed to build gem native extension
mann2108 opened this issue · 7 comments
Closing this issue, as I am able to solve these errors.
Facing the same problem. What did you do to solve this issue?
I am also seeing this
Facing the same problem. What did you do to solve this issue?
If you use RubyInstaller with MSYS2 version (newer than 2.4), you can use ridk exec
command to inject MSYS2 related environment variables into PATH
:
$ ridk exec gem fluent-gem install fluent-plugin-mongo
In Windows, GNU toolchain is not provided by default.
You need to provide another way, such as MSYS2 installation and telling where to put it.
I have the same problem.. I have installed fluentd on windows.. some plugins are getting installed but mongo plugin is not getting installed..
"In Windows, GNU toolchain is not provided by default.
You need to provide another way, such as MSYS2 installation and telling where to put it."
Sorry.. I do ont understand this.. can you please tell me how do I do this in windows?
Please follow the instruction to install MSYS2: https://www.msys2.org/
Or, If you install RubyInstaller with MSYS2, ridk exec
command can be executed by default.
It worked.. thanks a lot for the reference! :)
Just documenting here what all I did for any one looking for this.. to install fluentd mongodb plugin on windows..
- Create folder etc\fluent and put fluent.conf there. Its available inside the installation. Along with that, create etc\td-agent and td-agent.conf. The second one is already there as part of installation steps.
- Create folder cache in td-agent\lib\ruby\gems\2.7.0
- Ensure permissions to write is available for currently logged in user for all the folders under td-agent
- Install msys2 as mentioned by cosmo0920 as above