Feature #18422
closedInstalling fluentd on Solaris 10 by Ruby gems with error message: "ERROR: Failed to build gem native extension"
Description
Installing fluentd on Solaris 10 by Ruby gems with error message: "ERROR: Failed to build gem native extension":
gem install fluentd -v '0.12.43'
Building native extensions. This could take a while...
ERROR: Error installing fluentd:
ERROR: Failed to build gem native extension.
/opt/csw/bin/ruby2.0 extconf.rb
checking for ruby/st.h... yes
checking for st.h... yes
checking for rb_str_replace() in ruby.h... yes
checking for rb_intern_str() in ruby.h... yes
checking for rb_sym2str() in ruby.h... no
checking for rb_str_intern() in ruby.h... yes
checking for rb_block_lambda() in ruby.h... yes
checking for rb_hash_dup() in ruby.h... yes
checking for rb_hash_clear() in ruby.h... yes
creating Makefile
make "DESTDIR="
compiling buffer.c
cc: -W option with unknown program all
*** Error code 1
The following command caused the error:
/opt/SUNWspro/bin/cc -I. -I/opt/csw/include/ruby-2.0.0/i386-solaris2.10 -I/opt/csw/include/ruby-2.0.0/ruby/backward -I/opt/csw/include/ruby-2.0.0 -I. -DHAVE_RUBY_ST_H -DHAVE_ST_H -DHAVE_RB_STR_REPLACE -DHAVE_RB_INTERN_STR -DHAVE_RB_STR_INTERN -DHAVE_RB_BLOCK_LAMBDA -DHAVE_RB_HASH_DUP -DHAVE_RB_HASH_CLEAR -I/opt/csw/include -D_FILE_OFFSET_BITS=64 -KPIC -xO3 -xarch=pentium_pro -xchip=pentium_pro -KPIC -I.. -Wall -O3 -g -std=gnu99 -m32 -o buffer.o -c buffer.c
make: Fatal error: Command failed for target `buffer.o'
Gem files will remain installed in /opt/csw/lib/ruby/gems/2.0.0/gems/msgpack-1.3.3 for inspection.
Results logged to /opt/csw/lib/ruby/gems/2.0.0/gems/msgpack-1.3.3/ext/msgpack/gem_make.out
gem install fluentd -v '0.12.43' --debug
....
Exception NoMethodError' at /opt/csw/lib/ruby/2.0.0/rubygems/package.rb:551 - undefined method readpartial' for #Gem::Package::TarReader::Entry:0x8547948
....
Exception `Errno::ENOENT' at /opt/csw/lib/ruby/2.0.0/fileutils.rb:1319 - No such file or directory - /opt/csw/lib/ruby/gems/2.0.0/gems/msgpack-1.3.3/lib/msgpack.rb
...
Updated by kou (Kouhei Sutou) over 2 years ago
- Status changed from Open to Closed
Ruby 2.0 isn't supported: https://www.ruby-lang.org/en/news/2015/12/16/ruby-2-0-0-p648-released/
Could you use supported Ruby?
Updated by hsbt (Hiroshi SHIBATA) over 2 years ago
- Project changed from 14 to Ruby master