• 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

  • 相关阅读:
    udev 禁止某些驱动自动加载
    AT91SAM9XEK ramdisk 启动笔记
    MTD 工具使用
    kmp问题
    野指针 空指针 通用指针
    manacher算法实现
    manacher算法
    strcpy和strlen
    冒泡排序
    C++的重载(overload)与重写(override
  • 原文地址:https://www.cnblogs.com/chenzhenzhen/p/5344336.html
Copyright © 2020-2023  润新知