2013-02-18 2 views
1

나는 Rubyinstaller.org/downloads에서 얻은 DevKit에 문제가 있습니다. 나는 https://github.com/oneclick/rubyinstaller/wiki/development-kit에서 지침을 따르고 있습니다. 내가 gem install rdiscount --platform=ruby을 실행하여 내 설치를 테스트하기 위해 갈 때 나는 다음을 얻을 :ruby ​​문제 해결 키트 개발 키트

C:\DevKit>gem install rdiscount --platform=ruby 
Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
ERROR: Error installing rdiscount: 
     ERROR: Failed to build gem native extension. 

     "C:/Program Files/ruby-1.9.2/bin/ruby.exe" extconf.rb 
checking for random()... *** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of 
necessary libraries and/or headers. Check the mkmf.log file for more 
details. You may need configuration options. 

Provided configuration options: 
     --with-opt-dir 
     --without-opt-dir 
     --with-opt-include 
     --without-opt-include=${opt-dir}/include 
     --with-opt-lib 
     --without-opt-lib=${opt-dir}/lib 
     --with-make-prog 
     --without-make-prog 
     --srcdir=. 
     --curdir 
     --ruby=C:/Program Files/ruby-1.9.2/bin/ruby 
     --with-rdiscount-dir 
     --without-rdiscount-dir 
     --with-rdiscount-include 
     --without-rdiscount-include=${rdiscount-dir}/include 
     --with-rdiscount-lib 
     --without-rdiscount-lib=${rdiscount-dir}/lib 
C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier 
failed to generate an executable file. (RuntimeError) 
You have to install development tools first. 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:435:in `try_link 
0' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:440:in `try_link 
' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:552:in `try_func 
' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:797:in `block in 
have_func' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:693:in `block in 
checking_for' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 
levels) in postpone' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:254:in `open' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:280:in `block in 
postpone' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:254:in `open' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:276:in `postpone 
' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:692:in `checking 
_for' 
     from C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/mkmf.rb:796:in `have_fun 
c' 
     from extconf.rb:5:in `<main>' 


Gem files will remain installed in C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9 
.1/gems/rdiscount-2.0.7 for inspection. 
Results logged to C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rdiscount 
-2.0.7/ext/gem_make.out 

는 더 이상 정보가 필요하면 알려 주시기 바랍니다. 감사!

답변

1

공간이있는 디렉토리에 dev 킷을 설치하는 것이 문제의 원인입니다.

C:/Program Files을 사용하지 말고 다른 디렉토리 (예 : C:/ProgramFiles 또는 C:/bin ...

는 의견에 공간이 충분하지 않기 때문에 내가 여기이 퍼팅하고도

+0

Ya는 내 ruby-1.9.3 폴더를 공백없이 다른 디렉토리로 옮겼습니다. 고마워. – jerryg311

0

참조하십시오.

나는 이와 같은 문제가 과거에 발생했습니다. 나는 그들에 의해 얻을 수 있었지만, 내가 빨리 발견 한 것은 RoR 응용 프로그램을 실행하고 있던 서버가 리눅스 기반이라는 사실이었습니다. Windows의 개발 환경이 정상적으로 작동하지만 프로덕션 환경에 적용 할 때 여러 가지 문제가 있음을 발견했습니다. 이 문제를 해결하기 위해 DevKit을 결정할 수없는 경로에 설치했습니다. 나는 C에서 모든 설치, 종료 : 그 이후로 지난 몇 년 동안 \의 railskit

을, 나는

  • 버추얼의 RoR 응용 프로그램을 개발하기 위해 이러한 도구를 사용했습니다 - 가상화 된 개발 환경
  • 우분투 - 개발 OS
  • 키티 - 윈도우 버전
- 윈도우 기반 SSH 도구
  • SublimeText2을 (퍼티 기준)3210

    개발 환경에서 Ruby on Rails를 설치하고 Samba를 사용하여 개발 폴더를 공유했습니다. SSH를 KiTTY로 상자에 넣고 다른 컨트롤러를 생성하고 webrick 서비스를 실행하는 데 사용합니다. Windows 내에서 SublimeText2 내의 모든 코딩 작업을 수행합니다.