I was installing fluent via rubygems n I faced below error.
I believe this is not an error related to fluent but w.r.t ruby.
Could some one suggest what the solution is
root@vc2cmmkb165230n bin]# ./gem install fluent-plugin-kafka --source
http://rubygems.org
>
> Building native extensions. This could take a while...
>
> /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /opt in PATH, mode 040777
>
> ERROR: Error installing fluent-plugin-kafka:
>
> ERROR: Failed to build gem native extension.
>
>
>
> current directory: /usr/local/rvm/gems/ruby-2.4.0/gems/yajl-ruby-1.1.0/ext/yajl
>
> /usr/local/rvm/rubies/ruby-2.4.0/bin/ruby -r ./siteconf20170516-28803-12pciyx.rb extconf.rb
>
> creating Makefile
>
>
>
> current directory: /usr/local/rvm/gems/ruby-2.4.0/gems/yajl-ruby-1.1.0/ext/yajl
>
> make "DESTDIR=" clean
>
>
>
> current directory: /usr/local/rvm/gems/ruby-2.4.0/gems/yajl-ruby-1.1.0/ext/yajl
>
> make "DESTDIR="
>
> compiling yajl.c
>
> compiling yajl_alloc.c
>
> compiling yajl_buf.c
>
> compiling yajl_encode.c
>
> compiling yajl_ext.c
>
> yajl_ext.c: In function ‘yajl_found_hash_key’:
>
> yajl_ext.c:291: warning: ISO C90 forbids mixed declarations and code
>
> yajl_ext.c: In function ‘rb_yajl_encoder_enable_json_gem_ext’:
>
> yajl_ext.c:852: error: ‘rb_cFixnum’ undeclared (first use in this function)
>
> yajl_ext.c:852: error: (Each undeclared identifier is reported only once
>
> yajl_ext.c:852: error: for each function it appears in.)
>
> At top level:
>
> cc1: warning: unrecognized command line option "-Wno-self-assign"
>
> cc1: warning: unrecognized command line option "-Wno-constant-logical-operand"
>
> cc1: warning: unrecognized command line option "-Wno-parentheses-equality"
>
> cc1: warning: unrecognized command line option "-Wno-tautological-compare"
>
> make: *** [yajl_ext.o] Error 1
>
>
>
> make failed, exit code 2
>
>
>
> Gem files will remain installed in /usr/local/rvm/gems/ruby-2.4.0/gems/yajl-ruby-1.1.0 for inspection.
>
> Results logged to /usr/local/rvm/gems/ruby-2.4.0/extensions/x86_64-linux/2.4.0/yajl-ruby-1.1.0/gem_make.out
>