unable to install td-agent on Windows11 #4577
Unanswered
Ashutosh9Mishra
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is a problem?
when I am running this command: gem install fluent-plugin-windows-eventlog
then I am getting this error =>
ERROR: Error installing fluent-plugin-windows-eventlog:
ERROR: Failed to build gem native extension.
C:/opt/td-agent/embedded/bin/ruby.exe -r ./siteconf20240801-2568-1fr9w7n.rb extconf.rb
checking for -lwevtapi... *** extconf.rb failed ***
after that I run this command :
gem install fluent-plugin-windows-eventlog fluent-plugin-gelf --platform=ruby --
--with-wevtapi-lib=C:\Program Files (x86)\Windows Kits\10\Lib<version>\um\x64
--with-wevtapi-include=C:\Program Files (x86)\Windows Kits\10\Include<version>\um
but still getting same error . It is blocking so please help me out urgently.
Describe the configuration of Fluentd
No response
Describe the logs of Fluentd
"gcc -o conftest.exe -IC:/opt/td-agent/embedded/include/ruby-2.4.0/x64-mingw32 -IC:/opt/td-agent/embedded/include/ruby-2.4.0/ruby/backward -IC:/opt/td-agent/embedded/include/ruby-2.4.0 -I. -IC:/opt/td-agent/embedded/include -DFD_SETSIZE=2048 -m64 -march=x86-64 -O2 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -IC:/opt/td-agent/embedded/include -DFD_SETSIZE=2048 -march=x86-64 -O2 -fno-omit-frame-pointer conftest.c -L. -LC:/opt/td-agent/embedded/lib -LC:/opt/td-agent/embedded/lib -L. -LC:/opt/td-agent/embedded/lib -fno-lto -m64 -lx64-msvcrt-ruby240 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
In file included from C:/opt/td-agent/embedded/include/ruby-2.4.0/ruby/ruby.h:24,
from C:/opt/td-agent/embedded/include/ruby-2.4.0/ruby.h:33,
from conftest.c:1:
C:/opt/td-agent/embedded/include/ruby-2.4.0/x64-mingw32/ruby/config.h:183:15: error: two or more data types in declaration specifiers
183 | #define uid_t int
| ^~~
C:/opt/td-agent/embedded/include/ruby-2.4.0/x64-mingw32/ruby/config.h:184:15: error: two or more data types in declaration specifiers
184 | #define gid_t int
| ^~~
In file included from C:/opt/td-agent/embedded/include/ruby-2.4.0/ruby/ruby.h:36:
C:/opt/td-agent/embedded/include/ruby-2.4.0/ruby/defines.h:140:10: fatal error: setjmpex.h: No such file or directory
140 | #include <setjmpex.h>
| ^~~~~~~~~~~~
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char *argv)
6: {
7: return 0;
8: }
/ end */
Environment
Beta Was this translation helpful? Give feedback.
All reactions