Install fluentd via ruby gems error

100 views
Skip to first unread message

Saranya Nagaraj

unread,
May 16, 2017, 12:26:08 PM5/16/17
to Fluentd Google Group
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
>

Mr. Fiber

unread,
May 16, 2017, 3:31:53 PM5/16/17
to Fluentd Google Group
Because you tries to install older yajl-ruby which doesn't support ruby 2.4.
Please install latest yajl-ruby.


Masahiro


--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Saranya Nagaraj

unread,
May 17, 2017, 9:09:46 AM5/17/17
to Fluentd Google Group
Hi Masahiro ,

Thankyou that helped. However faced few issues like below. Please guide.

I installed fluentd via rubygems
>
>  
>
> And as per doc executed these commands to ensure fluentd is running successfully.
>
>  
>
>  
>
> When I executed this command “fluentd -c ./fluent/fluent.conf -vv &”
>
>  
>
> The output just seems to be growing like below which doesn’t stop. What does this indicate? Is this expected behavior??
>
>  
>
> 2017-05-17 08:49:24 -0400 [trace]: #0 [forward_output] enqueueing all chunks in buffer instance=70255636807420
>
> 2017-05-17 08:49:30 -0400 [trace]: #0 [forward_output] enqueueing all chunks in buffer instance=70255636807420
>
> 2017-05-17 08:49:35 -0400 [trace]: #0 [forward_output] enqueueing all chunks in buffer instance=70255636807420
>
> 2017-05-17 08:49:41 -0400 [trace]: #0 [forward_output] enqueueing all chunks in buffer instance=70255636807420
>
> 2017-05-17 08:49:46 -0400 [trace]: #0 [forward_output] enqueueing all chunks in buffer instance=70255636807420
>
> 2017-05-17 08:49:52 -0400 [trace]: #0 [forward_output] enqueueing all chunks in buffer instance=70255636807420
>
> 2017-05-17 08:49:57 -0400 [trace]: #0 [forward_output] enqueueing all chunks in buffer instance=70255636807420
>
> 2017-05-17 08:50:03 -0400 [trace]: #0 [forward_output] enqueueing all chunks in buffer instance=70255636807420
>
> 2017-05-17 08:50:08 -0400 [trace]: #0 [forward_output] enqueueing all chunks in buffer instance=70255636807420
>
> 2017-05-17 08:50:14 -0400 [trace]: #0 [forward_output] enqueueing all chunks in buffer instance=7025563
>

Mr. Fiber

unread,
May 18, 2017, 9:45:47 PM5/18/17
to Fluentd Google Group
> Is this expected behavior?

Yes because you enable trace level logging.

>

Reply all
Reply to author
Forward
0 new messages