无法通过终端启动IRB

时间:2016-02-27 17:56:41

标签: ruby-on-rails ruby irb

我使用http://installrails.com/提供的说明安装了Ruby + Rails。我试图在终端中启动IRB,并得到以下错误输出:

FishHeads:jhu katie$ irb
/Users/katie/.irbrc:1: warning: encountered \r in middle of line, treated as a mere space
/Users/katie/.rvm/scripts/irbrc.rb:70:in `load': /Users/katie/.irbrc:1:syntax error, unexpected tCONSTANT, expecting end-of-input (SyntaxError)
IRB.conf[:AUTO_INDENT_MODE] = false
                                ^
    from /Users/katie/.rvm/scripts/irbrc.rb:70:in `<top (required)>'
    from /Users/katie/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/katie/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/katie/.rvm/rubies/ruby-2.1.2/.irbrc:11:in `<top (required)>'
    from /Users/katie/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/init.rb:236:in `load'
    from /Users/katie/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/init.rb:236:in `run_config'
    from /Users/katie/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/init.rb:19:in `setup'
    from /Users/katie/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb.rb:380:in `start'
    from /Users/katie/.rvm/rubies/ruby-2.1.2/bin/irb:11:in `<main>'

有人可以让我开始解决这个问题吗?

0 个答案:

没有答案