質問

これらのエラーとはどういう意味ですか?

[root@localhost config]# gem install bluecloth
Building native extensions.  This could take a while...
ERROR:  Error installing bluecloth:
    ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
can't find header files for ruby.


Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/bluecloth-2.0.7 for 
inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/bluecloth-2.0.7/ext/gem_make.out
[root@localhost config]# 

この

[root@localhost config]# gem install chronic
Successfully installed json_pure-1.4.3
Successfully installed rubyforge-2.0.4
Successfully installed hoe-2.6.0
Successfully installed chronic-0.2.3
4 gems installed
/usr/lib64/ruby/gems/1.8/gems/rdoc-2.5.8/lib/rdoc/ruby_lex.rb:67: warning: 
parenthesize argument(s) for future version
ERROR:  While executing gem ... (Gem::DocumentError)
    ERROR: RDoc documentation generator not installed: no such file to load -- irb/slex
[root@localhost config]# 

「Yum Instruce Ruby-Rdocs」を使用してRDOCをインストールしました。しかし、このエラーが何を意味するのかわかりません

役に立ちましたか?

解決

yum install ruby-devel ruby-irb ruby-rdoc ruby-ri

前者のコマンドは両方の問題を修正しますが、2番目のエラーメッセージの場合は、追加することでドキュメントをスキップできることに留意してください。 --no-rdoc.

2017年4月:
--[no-]rdoc 説明されているように、議論は非難されています gem install --help. 。あなたは今使用する必要があります --no-document 各宝石のインストールで、またはこれをあなたに保存します ~/.gemrc これで説明されているように 答え.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top