2012-09-04 3 views
1
gemfile에서 루비 디버거

루비 디버거 설치 오류

를 설치하는 동안 나는 다음과 같은 오류를 얻고있다

내가 오류

의 원인은 무엇

gem 'ruby-debug19', :require => 'ruby-debug' 

bundle install 

Installing linecache19 (0.5.12) with native extensions 
    Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 
    /usr/local/bin/ruby extconf.rb 
    checking for vm_core.h... no 
    checking for vm_core.h... no 
    *** 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=/usr/local/bin/ruby 
    --with-ruby-dir 
    --without-ruby-dir 
    --with-ruby-include 
    --without-ruby-include=${ruby-dir}/include 
    --with-ruby-lib 
    --without-ruby-lib=${ruby-dir}/lib 

을 실행 추가

thre 디버거를 설치하는 방법 .. ???

답변

2

환경에 DevKit의 경로를 (으)로 설정해야합니다.

그런 다음 명령 프롬프트

을 통해

gem install linecache19 
gem install ruby-debug-base19 
gem install ruby-debug-ide 

을 실행

+1

이것은 위대한 일했습니다 ... –

1

"Ubuntu에서 원시 컴파일 단계는 ruby ​​1.9.2 소스를 다운로드하고 현재 사용자 에 쓰기 권한이없는 디렉토리에 압축을 풀려고합니다." - Darren (참조 : http://isitruby19.com/linecache19)

이 경우에는 sudo bundle install을 시도하십시오.

sudo -E gem install linecache19 -v=0.5.11 -- --with-ruby-include=path_to/ruby-1.9.1-p378/ 
sudo -E gem install ruby-debug-base19 -v=0.11.23 -- --with-ruby-include=path_to/ruby-1.9.1-p378/ 
sudo -E gem install ruby-debug-ide -v=0.4.9 -- --with-ruby-include=path_to/ruby-1.9.1-p378/ 

참조 : http://isitruby19.com/linecache19

문제가 vm_core.h 파일 의존성을 해결할 수없는 경우


, 특정 버전으로 설치하고 루비 소스의 경로를 실행할 수 있습니다 참고로 path_to/ruby-1.9.1-p378/을 루비를 설치 한 경로로 바꿉니다. RVM 웹 사이트에서

which ruby 
+0

여전히 오류 –

+0

당신은 슈퍼 유저 권한으로이 작품이 설치되어있다? 예. 'bundle'할 때'sudo bundle'을 시도하십시오 – ronalchn

+0

예 ruby ​​debug ide를 사용할 때 올바르게 설치되었습니다 --pre –

1

:

당신이 루비를 설치 한 경우, 실행 해 알아 보려면

당신은 문제가하려고 다음 명령을 사용하여 설치 루비 debug19 설치하는 경우 :

$ rvm reinstall 1.9.3 --patch debug --force-autoconf 
$ gem install ruby-debug19 -- --with-ruby-include="${MY_RUBY_HOME/rubies/src}" 
+0

Windows를 사용하고 있습니다 .. –

+0

Windows에 RVM이 없습니까? – Abram

+0

그러면 아래 답변을 따르는 것이 좋습니다. 좋아 보인다. – Abram