当我尝试运行时rails server
,我得到以下信息:
bin/rails:6: warning: already initialized constant APP_PATH
我设法启动 WEBrick 的唯一方法是gem 'byebug'
在 Gemfile 中注释掉。
起初我虽然是 Byebug 的错,但尝试运行rails console
给了我:
/home/fabio/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- readline (LoadError)
from /home/fabio/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /home/fabio/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
[...]
似乎我在安装的某些时候搞砸了,但是在哪里?