ProgramingTip

Ruby 1.9.3에서 debugger-linecache 설치 오류

bestdevel 2020. 12. 9. 21:32
반응형

Ruby 1.9.3에서 debugger-linecache 설치 오류


debugger-linecache프로젝트에 버전 1.0.1이 필요 하고 설치하려고 할 때 다음 오류가 발생합니다.

trunk ☺  gem install debugger-linecache -v '1.0.1'
Building native extensions.  This could take a while...
ERROR:  Error installing debugger-linecache:
    ERROR: Failed to build gem native extension.

        /Users/jordanscales/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p194 provided with debugger-ruby_core_source gem.
**************************************************************************
*** 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
    --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=/Users/jordanscales/.rvm/rubies/ruby-1.9.3-p194/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


Gem files will remain installed in /Users/jordanscales/.rvm/gems/ruby-1.9.3-p194/gems/debugger-linecache-1.0.1 for inspection.
Results logged to /Users/jordanscales/.rvm/gems/ruby-1.9.3-p194/gems/debugger-linecache-1.0.1/ext/trace_nums/gem_make.out
trunk ☺  

어떤 도움도 대단히 감사하겠습니다. 나는 검색 작동하는 해결책을 없습니다.


이 당신을 도울 수 있습니다.

gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p286/

이 오류는 선택한 버전이 debugger현재 Ruby 버전을 지원하지 않음을 의미합니다 . 두 가지 솔루션이 있습니다.

  1. debugger통해 gem을 업데이트 합니다 bundle update debugger. 의 새 버전은 debugger이전 Ruby 버전과 역 호환되는 가장 좋은 방법입니다.
  2. Ruby 버전을 다운 그레이드합니다.

업데이트 / 설치 gem debugger-ruby_core_source,

gem install debugger-ruby_core_source

여기에서 수정되었습니다 : https://github.com/cldwalker/debugger-ruby_core_source/pull/7


잘못은 내가 gemset을 사용하는 것이 문제입니다. RVM에서는 설치가 필요하지 않기 때문에 권한이있는 것이 아니라 설치하는 것이 좋습니다.

rvm gemset use global그런 다음 bundle install트릭을 수행했습니다.


아래 링크에서 :

https://github.com/cldwalker/debugger/issues/50

나는 gem ruby debug19를 설치 해결-다음 과 같이 문제가 해결되었습니다.

$ bundle
... -> failed to build debugger-linecache
$ gem install ruby-debug19
$ bundle
... -> all is fine

제 경우에는 문제가 debugger-linecache직접적으로 관련되지 않습니다 . debugger-ruby_core_source몇 가지 패치 수준으로 Ruby를 업그레이드 하거나 다운 그레이드하십시오.

나는 bundle update debugger-linecache. Gemfile.lock에 최신 버전이 debugger-ruby_core_source1.1.5로 업그레이드 된 debugger-linecache가 중지되었습니다.


https://github.com/cldwalker/debugger/issues/12 이전 답변을 숙독하여 debugger-ruby_core_source gem을 설치했습니다.


rvm을 사용하는 경우 경로가 ruby, rvm의 rubies 폴더로 연결되는지 확인하십시오.

$ rvm_path / rubies / ruby-1.9.3-p448

gem install debugger-linecache -v '1.1.2'---with-ruby-include = $ rvm_path / rubies / ruby-1.9.3-p448

Gemfile.lock은 번들로 묶으려는 것과 동일한 Ruby로 작성되지 않았습니다.

bundle update Bundler가 다른 버전을 보도록하여 작동해야합니다.


수동으로 빌드하십시오. 그것은 나를 위해 작동합니다 https://gist.github.com/4060260

참고 URL : https://stackoverflow.com/questions/10916784/error-installing-debugger-linecache-in-ruby-1-9-3

반응형