Ruby 1.9.3 p125 安装ruby-debug

Update:
4/10/2012
直接换成
gem 'debugger' 老的ruby-debug更新有点慢啊
跑起来一模一样

运行下面的shell安装新版gem


# Install with:
# bash < <(curl -L https://raw.github.com/gist/1891192)
#
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug

echo "Installing ruby-debug with ruby-1.9.3-p125 ..."

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-p125/

rm linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem

echo "Done."


修改Gemfile
group :development do
   gem 'linecache19', '0.5.13'
   gem 'ruby-debug-base19', '0.11.26'
   gem 'ruby-debug19', :require => 'ruby-debug'
end


bundle update

你可能感兴趣的:(debug,Ruby,gem)