GoogleCloudPlatform / fluent-plugin-google-cloud

Plugin for Fluentd that sends logs to the Google Cloud Platform's log ingestion API.
Apache License 2.0
183 stars 97 forks source link

Error installing the plugin #460

Open miquelis opened 3 years ago

miquelis commented 3 years ago

Hello, everyone!

I am trying to perform the installation of the plugin, however the following error occurs:

SO: Debian 10 TD-Agent: 4.1.0 fluentd: 1.12.1

sudo td-agent-gem install fluent-plugin-google-cloud
  Building native extensions. This could take a while...
  ERROR:  Error installing fluent-plugin-google-cloud:
          ERROR: Failed to build gem native extension.

      current directory: /opt/td-agent/lib/ruby/gems/2.7.0/gems/json-2.2.0/ext/json/ext/generator
  /opt/td-agent/bin/ruby -I /opt/td-agent/lib/ruby/2.7.0 -r ./siteconf20210504-1643-1d4ptqf.rb extconf.rb
  creating Makefile

  current directory: /opt/td-agent/lib/ruby/gems/2.7.0/gems/json-2.2.0/ext/json/ext/generator
  make "DESTDIR=" clean
  sh: 1: make: not found

  current directory: /opt/td-agent/lib/ruby/gems/2.7.0/gems/json-2.2.0/ext/json/ext/generator
  make "DESTDIR="
  sh: 1: make: not found

  make failed, exit code 127

  Gem files will remain installed in /opt/td-agent/lib/ruby/gems/2.7.0/gems/json-2.2.0 for inspection.
  Results logged to /opt/td-agent/lib/ruby/gems/2.7.0/extensions/x86_64-linux/2.7.0/json-2.2.0/gem_make.out
patient commented 3 years ago

make: not found

You can try to install something like build-essential or another package for you dist

arminzaugg commented 2 years ago

https://docs.fluentd.org/deployment/plugin-management

sudo /usr/sbin/td-agent-gem install fluent-plugin-google-cloud

install make, gcc, autoconf first.