ruby-terminfoをインストールしようとしたらエラーが出た。
$ sudo gem install ruby-terminfo --source http://merbi.st Building native extensions. This could take a while... ERROR: Error installing ruby-terminfo: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb install ruby-terminfo --source http://merbi.st checking for setupterm() in -lncurses... no checking for setupterm() in -lcurses... no checking for rb_io_t in ruby.h,rubyio.h... yes checking for rb_io_t.fd in ruby.h,rubyio.h... no checking for OpenFile.fd in ruby.h,rubyio.h... no creating extconf.h creating Makefile make Makefile:134: 警告: ターゲット `/var/lib/gems/1.8/gems/ruby-terminfo-0.1.1/lib' へのコマンドを置き換えます Makefile:132: 警告: ターゲット `/var/lib/gems/1.8/gems/ruby-terminfo-0.1.1/lib' への古いコマンドは無視されます cc -I. -I. -I/usr/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c terminfo.c terminfo.c:36:20: error: curses.h: そのようなファイルやディレクトリはありません terminfo.c:37:18: error: term.h: そのようなファイルやディレクトリはありません terminfo.c:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token terminfo.c: In function ‘setup’: terminfo.c:75: error: ‘TERMINAL’ undeclared (first use in this function) terminfo.c:75: error: (Each undeclared identifier is reported only once terminfo.c:75: error: for each function it appears in.) terminfo.c:75: error: ‘old’ undeclared (first use in this function) terminfo.c:76: error: ‘term’ undeclared (first use in this function) terminfo.c:78: error: ‘cur_term’ undeclared (first use in this function) terminfo.c: In function ‘rt_setupterm’: terminfo.c:100: warning: comparison between pointer and integer terminfo.c:109: error: ‘ERR’ undeclared (first use in this function) terminfo.c:116: error: ‘cur_term’ undeclared (first use in this function) terminfo.c: In function ‘rt_tigetstr’: terminfo.c:169: warning: assignment makes pointer from integer without a cast terminfo.c: In function ‘rt_tparm’: terminfo.c:209: warning: assignment makes pointer from integer without a cast terminfo.c: In function ‘rt_tputs’: terminfo.c:248: error: ‘ERR’ undeclared (first use in this function) make: *** [terminfo.o] エラー 1 Gem files will remain installed in /var/lib/gems/1.8/gems/ruby-terminfo-0.1.1 for inspection. Results logged to /var/lib/gems/1.8/gems/ruby-terminfo-0.1.1/gem_make.out
何かいろいろヘッダーファイルが足りないようだ。
(環境)
$ gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.2.0 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux] - INSTALLATION DIRECTORY: /var/lib/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /var/lib/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com/"] - REMOTE SOURCES: - http://gems.rubyforge.org/ - http://gems.github.com/
原因調査は、また今度。