|#To install ruby-debug on Ubuntu ruby-1.9.3 you need to download from http://rubyforge.org/frs/?group_id=8883|
|#Then in your console|
|# Note, your source path should be something like /home/user/.rvm/src/ruby-1.9.3-p0|
|gem install archive-tar-minitar|
|gem install ruby_core_source-0.1.5.gem -- --with-ruby-include=/$RVM_SRC|
|gem install linecache19-0.5.13.gem -- --with-ruby-include=/$RVM_SRC|
|gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/$RVM_SRC|
|gem install ruby-debug19-0.11.6.gem -- --with-ruby-include=/$RVM_SRC|
I've installed the gems in order, but when I try to install ruby-debug-base I get this:
$ gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/$RVM_SRC
checking for rb_method_entry_t.called_id in method.h... no
Provided configuration options:
Gem files will remain installed in /home/joe/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.26 for inspection.
gem 'ruby_core_source', '0.1.5', :path => "
I assumed that this is the way of telling rails it has to use this gems locally. Searching in the strace that irb makes when I required ruby-debug I found out that it finds it here:
open("/home/joe/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb", O_RDONLY) = 5
As you can see, it founds it in 'cli'. I did the same with the rails console, but grepping the result I found that it not looks in 'cli' for 'ruby-debug'. I'm clueless here...
@jescalante I think you are in another rvm gemset, please check this, You have to install this gems on the correct gemset, for example you are usign rails 3.1
Note, your source path should be something like /home/user/.rvm/src/ruby-1.9.3-p0
And you better have in your app a .rvmrc file with:
I had to do:
Hey all - for what it is worth, (this may or may not work for you) -- I put those things on my company's github page, and just added these lines to my gemfile. It's a lot easier to push this to all the guys on the team, when it's just a gemfile update. Hope it possibly helps.