ruby1.9.3-p0解决ruby-debug不能使用的问题

 

bash < <(curl -L https://raw.github.com/gist/1333785)
前提:
使用rvm安装的ruby,默认为1.9.3-p0,若是在1.9.3-p125上使用,可以手动吧脚本下下来,更改后执行
安装上即可~~
 
附脚本内容:
# 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."
或者将一下几句 放入Gemfile中:
source 'https://gems.gemfury.com/8n1rdTK8pezvcsyVmmgJ/' gem 'linecache19',       '>= 0.5.13' gem 'ruby-debug-base19', '>= 0.11.26' gem 'ruby-debug19'

你可能感兴趣的:(ruby1.9.3-p0解决ruby-debug不能使用的问题)