Skip to main content
1 / 2
xjr399
  • 340
  • 3
  • 26

bundle installするとgem install linecache19に失敗する

あるrailsアプリケーションのruby,RonRのバージョンアップをしようとしています。
まずrubyのバージョンをアップ(ruby 1.9.2p320⇒2.2.3)したところbundle installで失敗するようになり以下のようなエラーを出すようになりました。

[devel@CS-c014 3.3.x_version_up]$ rbenv exec bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies....
Using rake 10.1.1
 :
 :
Installing linecache19 0.5.12 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /home/devel/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20151008-8095-rmksgw.rb extconf.rb
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=/home/devel/.rbenv/versions/2.2.3/bin/$(RUBY_BASE_NAME)
        --with-ruby-dir
        --without-ruby-dir
        --with-ruby-include
        --without-ruby-include=${ruby-dir}/include
        --with-ruby-lib
        --without-ruby-lib=${ruby-dir}/lib
/home/devel/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39:in `create_makefile_with_core': uninitialized constant Ruby_core_source::Config (NameError)
        from extconf.rb:19:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /home/devel/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/linecache19-0.5.12 for inspection.
Results logged to /home/devel/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/linecache19-0.5.12/gem_make.out
An error occurred while installing linecache19 (0.5.12), and Bundler cannot continue.
Make sure that `gem install linecache19 -v '0.5.12'` succeeds before bundling.

gem 'ruby-debug19'を使用しているのですがrubyバージョンあげると使えなくなるということでしょうか?エラーを解消する方法もしくは代替のgemがありましたら教えて頂けますでしょうか?

xjr399
  • 340
  • 3
  • 26