2012-04-12 1 views
6

를 설치할 수 없습니다 나는 윈도우를 사용하고 난 그냥 명령 실행 :루비 - SystemTimer

C:\Sites\cmply>gem install SystemTimer -v '1.2.3' 

을 나는이 오류가있어 왜

Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
ERROR: Error installing SystemTimer: 
     ERROR: Failed to build gem native extension. 

     C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb 
creating Makefile 

make 
generating system_timer_native-i386-mingw32.def 
compiling system_timer_native.c 
In file included from system_timer_native.c:8:0: 
c:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/ruby/backward/rubysig.h:14:2: warning: #warning rubysig.h is obsolete 
system_timer_native.c: In function 'install_first_timer_and_save_original_configuration': 

어떤 생각을? 이에 앞서 나는 또 다른 의심스러운 오류가있어 :

Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/SystemTimer-1.2.3 for inspection. 
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/SystemTimer-1.2.3/ext/system_timer/gem_make.out 
An error occured while installing SystemTimer (1.2.3), and Bundler cannot continue. 
Make sure that `gem install SystemTimer -v '1.2.3'` succeeds before bundling. 

을 그 이전에 내 루비 버전은 동기화 어떻게 든임을 나타내 듯 다른 오류 가지고 : 그래서 그것은 모든 루팅

C:\Sites\cmply>bundle update rake 
Updating git://github.com/twitter/twitter-text-rb.git 
Fetching source index for http://rubygems.org/ 
Bundler could not find compatible versions for gem "activesupport": 
    In snapshot (Gemfile.lock): 
    activesupport (3.2.3) 

    In Gemfile: 
    rails (= 3.1.3) x86-mingw32 depends on 
     activesupport (= 3.1.3) x86-mingw32 

Running `bundle update` will rebuild your snapshot from scratch, using only 
the gems in your Gemfile, which may resolve the conflict. 

을 호환되지 않는 루비 버전이있는 날? 이것이 어떻게 해결되어야 하는가?

감사합니다.

+0

루비에는 기본 '시간'클래스가 있습니다. 왜 다른 보석이 필요한거야? – uday

+0

Ruby 버전을 제공해 주시겠습니까? 'ruby -v' 명령의 출력. –

+0

@uDaY'SystemTimer'는'Time' 클래스와 같지 않습니다. 완전히 다른 케이크입니다. –

답변

3

출력을 검사하면 1.9.1의 포함 파일로 Ruby 1.9.3을 빌드하고 있다고합니다.

Ruby 설치가 어떻게 든 부러진 것 같습니다. Ruby 1.9.3을 다시 설치하고 포함 파일이 c:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.3/에 있고 c:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/에 없는지 확인하십시오.

19

ruby ​​1.9에서 system_timer gem을 설치할 수는 없지만 버그는 아니며 기능입니다. 다음은 full explanation입니다.

"system_timer is only relevant if you are running Ruby 1.8. You do not need it if you are running Ruby 1.9"

는 1.9 루비 1.8에서 전환하는 경우, 단순히 system_time 보석을 제거하고 타임 아웃을 다루는 코드를 업데이트합니다.