fluentd-ui icon indicating copy to clipboard operation
fluentd-ui copied to clipboard

Installing Fluentd UI on windows (repost)

Open jessey316 opened this issue 5 years ago • 3 comments

Hi,

I have installed and setup fluentd on windows server. This is working fine but I wanted to explore the fluent UI but I am getting an error during the install following the guide

Error output: C:\Windows\system32>fluent-gem install fluentd-ui Fetching: tzinfo-1.2.7.gem (100%) Successfully installed tzinfo-1.2.7 Fetching: fluent-plugin-elasticsearch-2.12.5.gem (100%) Successfully installed fluent-plugin-elasticsearch-2.12.5 Building native extensions. This could take a while... ERROR: Error installing fluentd-ui: ERROR: Failed to build gem native extension.

current directory: C:/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/bson-4.8.2/ext/bson

C:/opt/td-agent/embedded/bin/ruby.exe -r ./siteconf20200514-5780-1y6z48y.rb extconf.rb creating Makefile

current directory: C:/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/bson-4.8.2/ext/bson make "DESTDIR=" clean C:/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/make-0.3.1/bin/make:4:in <top (required)>': undefined local variable or method make' for main:Object (NameError) from C:/opt/td-agent/embedded/bin/make:23:in load' from C:/opt/td-agent/embedded/bin/make:23:in

'

current directory: C:/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/bson-4.8.2/ext/bson make "DESTDIR=" C:/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/make-0.3.1/bin/make:4:in <top (required)>': undefined local variable or method make' for main:Object (NameError) from C:/opt/td-agent/embedded/bin/make:23:in load' from C:/opt/td-agent/embedded/bin/make:23:in

'

make failed, exit code 1

Gem files will remain installed in C:/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/bson-4.8.2 for inspection. Results logged to C:/opt/td-agent/embedded/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/bson-4.8.2/gem_make.out

I found this mentioning Failed to build gem native extension and need to install development packages. So after googling some more, I found some forums that mention installing ruby_dev and install Make

Even after doing this, I still get the same error. Wondering if anyone has any ideas please?

jessey316 avatar May 14 '20 10:05 jessey316

At first, I don't recommend to use it on Windows, probably it's not so tested on Windows.

I’ve never tested it with td-agent 3.x or before but now I've tried it with td-agent 4.0.0. Although td-agent 4.0.0 has a bug that it cannot build native extensions, I've succeeded to build & run fluentd-ui with a hack:

https://github.com/fluent-plugins-nursery/td-agent-builder/issues/129#issuecomment-656418974

Steps to install & launch:

ashie avatar Jul 27 '20 02:07 ashie

2020-07-27

ashie avatar Jul 27 '20 02:07 ashie

Hi ashie,

Thanks for getting back to me on this. This is interesting to see and I will definitely give it a try and let you know how it goes

jessey316 avatar Aug 05 '20 08:08 jessey316