fluent / fluent-plugin-mongo

MongoDB input and output plugin for Fluentd
https://docs.fluentd.org/output/mongo
173 stars 61 forks source link

Error installing fluent-plugin-mongo #180

Open bloodymerry opened 1 year ago

bloodymerry commented 1 year ago

Hello guys, I was installed MSYS2 and fluentd sucessfully (in windows OS) but this error was occured when i was installing fluent-plugin-mongo

It works in old version. ridk exec td-agent-gem install fluent-plugin-mongo -v 0.7.11

command result

C:\opt\td-agent\bin>ridk exec td-agent-gem install fluent-plugin-mongo -v 0.7.11
Fetching fluent-plugin-mongo-0.7.11.gem
Successfully installed fluent-plugin-mongo-0.7.11
Parsing documentation for fluent-plugin-mongo-0.7.11
Done installing documentation for fluent-plugin-mongo after 0 seconds
1 gem installed

but newer versions and latest version doesn't works.

and I already checked the link below. https://github.com/fluent/fluent-plugin-mongo/issues/162 https://github.com/fluent/fluent-plugin-mongo/issues/103

Here is my executed command log

C:\opt\td-agent\bin>ridk exec td-agent-gem install fluent-plugin-mongo
Fetching bson-4.15.0.gem
Fetching mongo-2.18.2.gem
Fetching fluent-plugin-mongo-1.6.0.gem
Building native extensions. This could take a while...
ERROR:  Error installing fluent-plugin-mongo:
        ERROR: Failed to build gem native extension.

    current directory: C:/opt/td-agent/lib/ruby/gems/2.7.0/gems/bson-4.15.0/ext/bson
C:/opt/td-agent/bin/ruby.exe -I C:/opt/td-agent/lib/ruby/2.7.0 -r ./siteconf20230404-6408-16p8ydc.rb extconf.rb
creating Makefile

current directory: C:/opt/td-agent/lib/ruby/gems/2.7.0/gems/bson-4.15.0/ext/bson
make "DESTDIR=" clean
current directory: C:/opt/td-agent/lib/ruby/gems/2.7.0/gems/bson-4.15.0/ext/bson
make "DESTDIR="
make failedNo such file or directory - make "DESTDIR="

Gem files will remain installed in C:/opt/td-agent/lib/ruby/gems/2.7.0/gems/bson-4.15.0 for inspection.
Results logged to C:/opt/td-agent/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/bson-4.15.0/gem_make.out

Plaese help me Thank you.

cedrata commented 4 weeks ago

I have the same error installing the plugins using kubernetes, anyone?