rails-project git:creating-models ❯ rails console
Loading development environment (Rails 3.2.1)
Couldn't load Wirble: cannot load such file -- wirble
irb(main):001:0>
我用Google搜索了,没有任何与此相关的内容......我不确定这是否有帮助
rails-project git:creating-models ❯ irb
>> puts $:
/usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/wirble-0.1.3/lib
/usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1
/usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby/1.9.1/x86_64-darwin11.2.0
/usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/site_ruby
/usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/vendor_ruby/1.9.1
/usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/vendor_ruby/1.9.1/x86_64-darwin11.2.0
/usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/vendor_ruby
/usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1
/usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/1.9.1/x86_64-darwin11.2.0
Ruby版本:
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
我正在使用OSX,而不是Ubuntu(在我看到的每个谷歌搜索中似乎都是这个问题的根源)
答案 0 :(得分:5)
您很可能在.irbrc中需要Wirble。你有〜/ .irbrc文件吗?如果是这样,从中移除Wirble(或将Wirble添加到应用程序的开发包中)将解决此问题。