### UPDATE: ruby-debuy19 is no longer maintained, use https://github.com/cldwalker/debugger | |
# Install with: | |
# bash < <(curl -L https://raw.github.com/gist/1333785) | |
# | |
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug | |
echo "Installing ruby-debug with ruby-1.9.3-p0 ..." | |
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem | |
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem | |
gem install linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p0/ | |
rm linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem | |
echo "Done." |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
caironoleto
commented
Nov 2, 2011
Or you can do only this: gem install linecache19 ruby-debug-base19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p0/ |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
dx7
Nov 3, 2011
Without linecache19-0.5.13 and ruby-debug-base19-0.11.26 you can install. When you require 'ruby-debug':
ruby-1.9.3 irb> require 'ruby-debug'
LoadError: dlopen(/Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle, 9): Symbol not found: _ruby_current_thread
Referenced from: /Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
Expected in: flat namespace
in /Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle - /Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in `<top (required)>'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:5:in `<top (required)>'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from (irb):1
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `<main>'
Without linecache19-0.5.13 and ruby-debug-base19-0.11.26 you can install. When you require 'ruby-debug': ruby-1.9.3 irb> require 'ruby-debug'
LoadError: dlopen(/Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle, 9): Symbol not found: _ruby_current_thread
Referenced from: /Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
Expected in: flat namespace
in /Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle - /Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.bundle
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in `<top (required)>'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/rafaeldx7/.rvm/gems/ruby-1.9.3-p0/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:5:in `<top (required)>'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from (irb):1
from /Users/rafaeldx7/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `<main>' |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
Tarrasch
Mar 1, 2012
The one-liner you presented in the commented code did it for me! Finally I can use rdebug
, thanks! I use Ubuntu 11.10 together with rvm
.
Tarrasch
commented
Mar 1, 2012
The one-liner you presented in the commented code did it for me! Finally I can use |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
good! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
pehrlich
Jun 21, 2012
See this thread.. http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
Bottom line: ruby-debuy19 is no longer maintained, use https://github.com/cldwalker/debugger
pehrlich
commented
Jun 21, 2012
See this thread.. http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
Thank you man. I updated the post with your comment. |
Or you can do only this:
gem install linecache19 ruby-debug-base19 -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p0/