2013-04-25 6 views
2

bundle install을 실행하려고했습니다. 다음은 입력 한 일련의 명령과 오류 메시지의 관련 스 니펫입니다.linecache19 설치 중 오류가 발생했습니다.

bundle update 

라인 캐시 (0.46) 설치 중 오류가 발생하여 번들러를 계속할 수 없습니다.
번들링 전에 gem install linecache -v '0.46'이 성공했는지 확인하십시오.

gem install linecache -v '0.46' 

처리 할 수없는 1.9.x 아직

gem install linecache19 

vm_core.h 확인 ... 아니

마지막 :

gem install linecache19 -- --with-ruby-include=/opt/t/rvm/src/ruby-1.9.3-p194 

ERROR: Error installing linecache19: 
    ERROR: Failed to build gem native extension. 

    /opt/t/rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb --with-ruby-include=/opt/t/rvm/src/ruby-1.9.3-p194 
checking for vm_core.h... yes 
checking for version.h... yes 
creating Makefile 

make 
compiling trace_nums.c 
In file included from trace_nums.c:21: 
/opt/t/rvm/src/ruby-1.9.3-p194/vm_core.h:311:5: error: unknown type name 'rb_event_hook_t'; did you mean 'rb_event_flag_t'? 
    rb_event_hook_t *event_hooks; 
    ^~~~~~~~~~~~~~~ 
    rb_event_flag_t 
/opt/t/rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/ruby.h:1602:23: note: 'rb_event_flag_t' declared here 
typedef unsigned long rb_event_flag_t; 
        ^
In file included from trace_nums.c:21: 
/opt/t/rvm/src/ruby-1.9.3-p194/vm_core.h:477:5: error: unknown type name 'rb_event_hook_t'; did you mean 'rb_event_flag_t'? 
    rb_event_hook_t *event_hooks; 
    ^~~~~~~~~~~~~~~ 
    rb_event_flag_t 
/opt/t/rvm/rubies/ruby-2.0.0-p0/include/ruby-2.0.0/ruby/ruby.h:1602:23: note: 'rb_event_flag_t' declared here 
typedef unsigned long rb_event_flag_t; 
        ^
trace_nums.c:61:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] 
    len = strlen(token) - 1; 
     ~ ~~~~~~~~~~~~~~^~~ 
1 warning and 2 errors generated. 
make: *** [trace_nums.o] Error 1 


Gem files will remain installed in /opt/t/rvm/gems/ruby-2.0.0-p0/gems/linecache19-0.5.12 for inspection. 
Results logged to /opt/t/rvm/gems/ruby-2.0.0-p0/gems/linecache19-0.5.12/ext/trace_nums/gem_make.out 
+0

가능한 중복 : http://stackoverflow.com/questions/6650567/installing-linecache19-for-ruby-1-9-2-via-rvm – uday

답변

5

강제로 Gemfile 사용하기 이 버전

gem 'linecache19', '0.5.13', :path => "~/.rvm/gems/ruby-1.9.3-p0/gems/linecache19-0.5.13/" 
,

다음 bundle install

+1

은이 때까지 (최신로도 작동 루비 버전 : > gem 'linecache19', '0.5.12', : path => "~/.rvm/gems/ruby-2.0.0-p247/gems/linecache19-0.5.12 /". – Vielinko

+1

정보를 제공해 주셔서 감사합니다. – Shrikant1712

관련 문제