Hello, I recently encountered issues installing this fluentd-plugin-gcs plugin. Below is the error when you attempt to install it when building an image:
Sending build context to Docker daemon 151.6kB
Step 1/2 : FROM quay.io/fluentd_elasticsearch/fluentd:v2.9.0
---> 5a992077baba
Step 2/2 : RUN fluent-gem install fluent-plugin-gcs && fluent-gem install fluent-plugin-s3
---> Running in 13acad7afecd
Successfully installed google-cloud-env-1.3.2
Successfully installed google-cloud-errors-1.0.1
Successfully installed google-cloud-core-1.5.0
Successfully installed declarative-option-0.1.0
Successfully installed declarative-0.0.20
Successfully installed uber-0.1.0
Successfully installed representable-3.0.4
Successfully installed retriable-3.1.2
Successfully installed mini_mime-1.0.2
Successfully installed jwt-2.2.1
Successfully installed signet-0.14.0
Successfully installed memoist-0.16.2
Successfully installed os-1.1.0
Successfully installed googleauth-0.13.0
Successfully installed httpclient-2.8.3
Successfully installed google-api-client-0.41.2
Building native extensions. This could take a while...
ERROR: Error installing fluent-plugin-gcs:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/digest-crc-0.6.1/ext/digest
/usr/bin/ruby2.5 -rrubygems /var/lib/gems/2.5.0/gems/rake-13.0.1/exe/rake RUBYARCHDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/digest-crc-0.6.1 RUBYLIBDIR=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/digest-crc-0.6.1
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
rake failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.5.0/gems/digest-crc-0.6.1 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/digest-crc-0.6.1/gem_make.out
The command '/bin/sh -c fluent-gem install fluent-plugin-gcs && fluent-gem install fluent-plugin-s3' returned a non-zero code: 1
I am unable to find the root cause of the issue, so I am raising this issue here for help.
I found out that this issue is due to the digest-crc package that was recently updated to 0.6. Using version 0.5.1 allows the installation of the gcs plugin to succeed.
Hello, I recently encountered issues installing this
fluentd-plugin-gcs
plugin. Below is the error when you attempt to install it when building an image:I am unable to find the root cause of the issue, so I am raising this issue here for help.
Version of fluentd is 1.8.0