2010-05-25 4 views
5

이 오류는 무엇을 의미합니까? fedora 12에서 rdoc, irb, bluecloth, chronic 설치시 문제

[[email protected] 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 
[[email protected] config]# 

그리고이

[[email protected] 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 
[[email protected] config]# 

나는 "냠 루비 rdocs를 설치"을 사용하여 rdocs를 설치했습니다. 그러나 나는이 오류가

답변

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

가 이전 명령을 수정하지만 둘 다 문제가, 두 번째 오류 메시지의 경우, 당신이 가지고 또한 --no-rdoc을 추가하여 문서를 건너 뛸 수 있다는 사실을 가지고 무엇을 의미하는지 이해가 안 돼요.

2017년 4월 : gem install --help에 설명 된대로
--[no-]rdoc 인수는 더 이상 사용되지 않습니다. 이제 각 보석 설치시 --no-document을 사용하거나이 answer에서 설명한대로 ~/.gemrc에 저장해야합니다.

+1

고마워요. 그리고 yum을 사용하여 어떻게 ruby-1.9.1을 설치할 수 있습니까? 'yum install ruby ​​--version = 1.9.1'이 작동하지 않습니다. 이 오류는'No package ruby-1.9.1 available .'입니다. – Vineeth

+0

IIRC 페도라에는 1.9.x 루비 패키지가 없으며 깔끔하게 컴파일되지도 않습니다. (실망 스럽습니다). – vise

+0

그래, 그건 소식이야. 어쨌든 고마워, 내 큰 문제는 적어도 고쳐 졌어. – Vineeth