Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Installing debugger-linecache failed with ruby 1.9.3p327

View gist:4060260
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
```
$ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
```
 
- 0ecd4640664c4723323d6fff5760dc4d833d7eb9 reverted
 
```ruby
$ bundle update
... snip ...
Using debugger-ruby_core_source (1.1.4)
Installing debugger-linecache (1.1.2) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/yahonda/.rvm/rubies/ruby-1.9.3-p327/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-p327 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=/home/yahonda/.rvm/rubies/ruby-1.9.3-p327/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 /home/yahonda/.rvm/gems/ruby-1.9.3-p327@railsmaster/gems/debugger-linecache-1.1.2 for inspection.
Results logged to /home/yahonda/.rvm/gems/ruby-1.9.3-p327@railsmaster/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out
An error occurred while installing debugger-linecache (1.1.2), and Bundler cannot continue.
Make sure that `gem install debugger-linecache -v '1.1.2'` succeeds before bundling.
```

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

worked here

Owner

Thanks for the workaround.

Thanks a lot, it worked for me too.

Thank you!

Can't seem to get the equivalent to work with rbenv, anyone else have any luck?

Just install with rbenv using the "keep" arg...
rbenv install xxx --keep

Then...
gem install debugger-linecache -v '1.1.2' --with-ruby-include=~/.rbenv/sources/xxx/xxx

Note: replace the xxx's with the version you want. Also, make sure the path to rbenv is correct.

It's surprising that --keep isn't the default or, really, that it exists at all! How expensive is that extra 130MB?

@tonycoco, I think this should have worked but didn't: gem install debugger-linecache -- --with-ruby-dir=~/.rbenv/sources/1.9.3-p327 From its printout, extconf.rb appears to be ignoring all config arguments.

This worked for me, just need to install eiel's unmerged pull request:

cd /tmp
git clone 'https://github.com/eiel/debugger-ruby_core_source.git'
cd debugger-ruby_core_source/
gem build debugger-ruby_core_source.gemspec
gem install debugger-ruby_core_source-1.1.5.gem

Now gem install debugger installs debugger-1.2.1 and debugger-linecache-1.1.2 without drama.

Thank You! This worked for me as well!

wow this was awesome! thanks bronson!

Was a life saver, but I'd like to improve on the rvm version, use --with-ruby-include=$rvm_path/src/$rvm_ruby_string
for portability.

bronson's steps worked for me too, but the debugger_ruby-core-source version has been bumped and the last line should be:

gem install debugger-ruby_core_source-1.1.6.gem

thanks a lot ^^

Thanks, @michelegera!

For the ones who stumble on this issue at this time, if you're using Bundler try running bundle update debugger-linecache. This should update the debugger-ruby_core_source dependency to 1.1.8 which should work without worries.

@bronson ----- thanks bronson! very well done!!!

@rchampourlier - bumping debugger-linecache worked for me.

@bronson - Nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.