代码之家  ›  专栏  ›  技术社区  ›  Vineeth Pradhan

在fedora 12上安装rdoc、irb、bluecloth和chronic时出现问题

  •  5
  • Vineeth Pradhan  · 技术社区  · 16 年前

    这些错误意味着什么?

    [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]# 
    

    1 回复  |  直到 16 年前
        1
  •  17
  •   Community Mohan Dere    9 年前
    yum install ruby-devel ruby-irb ruby-rdoc ruby-ri
    

    尽管前一个命令解决了这两个问题,但请记住,在出现第二条错误消息的情况下,还可以通过添加 --no-rdoc .

    2017年4月:
    --[no-]rdoc 参数已被弃用,如中所述 gem install --help . 你现在必须使用 --no-document 在每个gem安装或存储在您的 ~/.gemrc 如本文所述 answer .

    推荐文章