fangli / fluent-plugin-influxdb

A buffered output plugin for fluentd and InfluxDB
MIT License
111 stars 65 forks source link

Ruby Version Problem #79

Closed buarmin closed 7 years ago

buarmin commented 7 years ago

Dear Friends I want to use your plugin but I get error.
ERROR: Error installing fluent-plugin-influxdb: influxdb requires Ruby version >= 2.2.0.

I uninstalled my ruby and installed different versions from 2.0.0, 2.2.0, 2.3, 2.4 but the error still exist. would you please help me how to solve this. Thank you.

repeatedly commented 7 years ago

I assume you use td-agent: https://docs.fluentd.org/v0.12/articles/faq#i-installed-td-agent-and-want-to-add-custom-plugins-how-do-i-do-it And need to use v0.3.x in ruby 2.1: https://github.com/influxdata/influxdb-ruby/blob/master/CHANGELOG.md

buarmin commented 7 years ago

Thank you for reply but it does not help root@c982d9f04bf6:/var/log/td-agent# /usr/sbin/td-agent-gem install fluent-plugin-influxdb WARN: Unresolved specs during Gem::Specification.reset: msgpack (< 2, >= 0.5.11) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. Fetching: influxdb-0.4.0.gem (100%) ERROR: Error installing fluent-plugin-influxdb: influxdb requires Ruby version >= 2.2.0.

root@c982d9f04bf6:/var/log/td-agent# ruby -v ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

repeatedly commented 7 years ago

And need to use v0.3.x in ruby 2.1: https://github.com/influxdata/influxdb-ruby/blob/master/CHANGELOG.md

Please read this sentence.

buarmin commented 7 years ago

sorry my bad but i didn't get your clue ?

repeatedly commented 7 years ago

I release new version to avoid v0.4 installation. Latest version should fix this problem.

buarmin commented 7 years ago

Thank you very much "Masahiro" . I appreciate .