pry与ruby版本冲突
Posted chzhzh
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pry与ruby版本冲突相关的知识,希望对你有一定的参考价值。
/home/zhenzhen/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:135:in `gem_original_require‘: /home/zhenzhen/.rvm/gems/ruby-1.8.7-p374/gems/pry-0.10.3/lib/pry.rb:39: syntax error, unexpected ‘:‘, expecting ‘)‘ (SyntaxError)
output.puts Pry.view_clip(value, id: true)
^
/home/zhenzhen/.rvm/gems/ruby-1.8.7-p374/gems/pry-0.10.3/lib/pry.rb:43: syntax error, unexpected kDO_BLOCK, expecting kEND
DEFAULT_EXCEPTION_HANDLER = proc do |output, exception, _|
^
/home/zhenzhen/.rvm/gems/ruby-1.8.7-p374/gems/pry-0.10.3/lib/pry.rb:43: syntax error, unexpected ‘|‘, expecting ‘=‘
/home/zhenzhen/.rvm/gems/ruby-1.8.7-p374/gems/pry-0.10.3/lib/pry.rb:84: syntax error, unexpected kDO_BLOCK, expecting ‘]‘
proc do |_, _, _pry_|
^
/home/zhenzhen/.rvm/gems/ruby-1.8.7-p374/gems/pry-0.10.3/lib/pry.rb:84: syntax error, unexpected ‘|‘, expecting ‘=‘
/home/zhenzhen/.rvm/gems/ruby-1.8.7-p374/gems/pry-0.10.3/lib/pry.rb:87: syntax error, unexpected ‘,‘, expecting $end
from /home/zhenzhen/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:135:in `require‘
from ./script/em_chat:9
pry0.10.12与ruby1.8.7产生冲突
改为pry的低版本如0.9.1
以上是关于pry与ruby版本冲突的主要内容,如果未能解决你的问题,请参考以下文章
npoi与memcached中的ICSharpCode.SharpZipLib版本冲突的解决方案