Я пытаюсь установить fluentd и cool.io ruby gem на Solaris 10 и получаю сообщение об ошибке: "make: Fatal error: Команда не выполнена для цели" libev.o "". Однако я могу установить некоторые гемы, такие как io-буфер.Пожалуйста, найдите трассировку ошибок ниже:
gem install fluentd-1.1.1.gem
Building native extensions. This could take a while...
ERROR: Error installing fluentd-1.1.1.gem:
ERROR: Failed to build gem native extension.
current directory: /usr/local/lib/ruby/gems/2.4.0/gems/cool.io-1.5.3/ext/cool.io
/usr/local/bin/ruby -r ./siteconf20181213-11603-1ksh9e7.rb extconf.rb
creating Makefile
current directory: /usr/local/lib/ruby/gems/2.4.0/gems/cool.io-1.5.3/ext/cool.io
make "DESTDIR="
compiling cool.io_ext.c
In file included from cool.io.h:11,
from cool.io_ext.c:11:
/usr/local/include/ruby-2.4.0/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h"
compiling iowatcher.c
In file included from iowatcher.c:8:
/usr/local/include/ruby-2.4.0/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h"
In file included from cool.io.h:11,
from iowatcher.c:12:
/usr/local/include/ruby-2.4.0/ruby/backward/rubyio.h:2:2: warning: #warning use "ruby/io.h" instead of "rubyio.h"
iowatcher.c: In function `Coolio_IOWatcher_initialize':
iowatcher.c:75: warning: assignment discards qualifiers from pointer target type
iowatcher.c:90: warning: value computed is not used
compiling libev.c
In file included from libev.c:8:
../libev/ev.c:488:48: warning: "/*" within comment
In file included from libev.c:8:
../libev/ev.c: In function `ecb_byteorder_helper':
../libev/ev.c:1159: warning: missing braces around initializer
../libev/ev.c:1159: warning: (near initialization for `u.c')
../libev/ev.c:1519:3: #error "memory fences not defined for your architecture, please report"
In file included from libev.c:8:
../libev/ev.c: At top level:
../libev/ev.c:1836: warning: `ev_default_loop_ptr' initialized and declared `extern'
../libev/ev.c: In function `ev_time':
../libev/ev.c:1876: warning: ISO C90 forbids mixed declarations and code
In file included from ../libev/ev.c:2701,
from libev.c:8:
../libev/ev_port.c: In function `port_init':
../libev/ev_port.c:148: warning: left-hand operand of comma expression has no effect
In file included from ../libev/ev.c:2710,
from libev.c:8:
../libev/ev_poll.c: In function `poll_poll':
../libev/ev_poll.c:111: warning: left-hand operand of comma expression has no effect
In file included from libev.c:8:
../libev/ev.c: In function `loop_init':
../libev/ev.c: In function `ev_stat_start':
../libev/ev.c: In function `ev_embed_start':
../libev/ev.c: In function `ev_once':
*** Error code 1
The following command caused the error:
gcc -I. -I/usr/local/include/ruby-2.4.0/sparc-solaris2.10 -I/usr/local/include/ruby-2.4.0/ruby/backward -I/usr/local/include/ruby-2.4.0 -I. -DRUBY_VERSION_CODE=243 -DHAVE_RB_THREAD_CALL_WITHOUT_GVL -DHAVE_RB_THREAD_ALONE -DHAVE_RB_STR_SET_LEN -DHAVE_SYS_SELECT_H -DEV_USE_SELECT -DHAVE_POLL_H -DEV_USE_POLL -DHAVE_PORT_H -DEV_USE_PORT -DHAVE_SYS_RESOURCE_H -D__EXTENSIONS__ -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC -O3 -fno-fast-math -ggdb3 -Wall -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-parentheses-equality -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wimplicit-fallthrough=0 -o libev.o -c libev.c
make: Fatal error: Command failed for target `libev.o'
make failed, exit code 1
Gem files will remain installed in /usr/local/lib/ruby/gems/2.4.0/gems/cool.io-1.5.3 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.4.0/extensions/sparc-solaris-2.10/2.4.0-static/cool.io-1.5.3/gem_make.out
Ruby успешно скомпилирован и собран в системе, но установка гемов выдает ошибку.