Ошибка при установке debugger-linecache: ERROR: Не удалось создать собственное расширение gem - программирование
Подтвердить что ты не робот

Ошибка при установке debugger-linecache: ERROR: Не удалось создать собственное расширение gem

Я пытаюсь установить пакет, но он показывает указанную выше ошибку или отладчик. Пожалуйста, найдите подробную ошибку с терминала

Installing debugger-linecache (1.1.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/local/ruby/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.2-p0 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
        --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/ruby/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 /usr/local/ruby/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.1 for inspection.
Results logged to /usr/local/ruby/lib/ruby/gems/1.9.1/gems/debugger-linecache-1.1.1/ext/trace_nums/gem_make.out 

An error occured while installing debugger-linecache (1.1.1), and Bundler cannot continue.
Make sure that `gem install debugger-linecache -v '1.1.1'` succeeds before bundling.

Если я набираю ruby-v в терминале, я получаю ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]

Если я делаю gem install debugger-linecache, я все равно получаю ту же ошибку. Как это можно решить. Пожалуйста, помогите?

4b9b3361

Ответ 1

У меня была очень похожая ошибка, но на ruby ​​1.9.3. Продолжительность:

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

У меня это работало. Подтвердите этот ответ.

Ответ 2

Я решил аналогичную проблему (обновление Ruby 1.9.3 до 2.0) с помощью простых

bundle update debugger

который в результате установил gem version 1.6.0

Ответ 3

То же исправление, немного более актуальное

# check ruby version with rvm info
gem install debugger-linecache -v '1.1.2' \
-- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p448

Ответ 4

В Ubuntu 13.04, если это имеет значение.

Мне пришлось: gem install debugger-ruby_core_source -v 1.1.2

то: gem install debugger

Тогда мой комплект завершился нормально.

Благодаря этот комментарий к проблеме.