Skip to content

install ERROR #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
GerryLon opened this issue Apr 26, 2019 · 4 comments
Open

install ERROR #5

GerryLon opened this issue Apr 26, 2019 · 4 comments

Comments

@GerryLon
Copy link

/ # 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
Copy link
Owner

codeout commented Apr 29, 2019

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

ruby -v
uname -a

@gnanasalten
Copy link

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
Copy link
Owner

codeout commented Aug 25, 2021

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
Copy link
Owner

codeout commented Sep 3, 2021

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants