Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save DeepakSinghRawat/5277687 to your computer and use it in GitHub Desktop.

Select an option

Save DeepakSinghRawat/5277687 to your computer and use it in GitHub Desktop.
#To install ruby-debug on Ubuntu ruby-1.9.3 you need to download from http://rubyforge.org/frs/?group_id=8883
Note: Download links available in the first comment
linecache19-0.5.13.gem
ruby_core_source-0.1.5.gem
ruby-debug19-0.11.6.gem
ruby-debug-base19-0.11.26.gem
#Then in your console
rvm install ruby-1.9.3-p392
rvm use ruby-1.9.3-p392@global
export RVM_SRC=$HOME/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1
gem install archive-tar-minitar
gem install ruby_core_source-0.1.5.gem -- --with-ruby-include=/$RVM_SRC
export RVM_SRC=$HOME/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby-1.9.3-p392/
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
Edit Gemfile:
gem 'linecache19', '0.5.13', :path => "~/.rvm/gems/ruby-1.9.3-p392@global/gems/linecache19-0.5.13/"
gem 'ruby-debug-base19', '0.11.26', :path => "~/.rvm/gems/ruby-1.9.3-p392@global/gems/ruby-debug-base19-0.11.26/"
gem 'ruby-debug19', :require => 'ruby-debug'
Then
bundle install --system