codeout / fluent-plugin-sflow

sFlow plugin for Fluentd
MIT License
11 stars 3 forks source link

install ERROR #5

Open GerryLon opened 5 years ago

GerryLon commented 5 years ago

/ # fluent-gem install fluent-plugin-sflow

Building native extensions. This could take a while...
ERROR:  Error installing fluent-plugin-sflow:
        ERROR: Failed to build gem native extension.

    current directory: /usr/lib/ruby/gems/2.5.0/gems/fluent-plugin-sflow-0.3.3/ext/sflowtool
/usr/bin/ruby -r ./siteconf20190424-137-1bgl375.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /usr/lib/ruby/gems/2.5.0/gems/fluent-plugin-sflow-0.3.3 for inspection.
Results logged to /usr/lib/ruby/gems/2.5.0/extensions/x86_64-linux/2.5.0/fluent-plugin-sflow-0.3.3/gem_make.out
codeout commented 5 years ago

Thanks for your reporting. Could you tell me about your environment?

ruby -v
uname -a
gnanasalten commented 3 years ago

Some plugins depend on the native extension library. It means that you need to install development packages to build

install the below packages on the system gcc, make, autoconf

codeout commented 3 years ago

Right. A problem here is that it can't be done by bundle install.

Another option is to ship pre-compiled native gems like this. It should be better but need some time to prepare CI environment. Meanwhile, I'll update the "Install" section of README.

codeout commented 3 years ago

I'm done updating README. Added installation hints about ruby-dev ( ruby-devel ) and build tools.

https://github.com/codeout/fluent-plugin-sflow#install