[问题] mogilefs-client 在 ror 3.2.9

楼主: isnora (nora)   2012-12-10 08:14:47
环境:
e.g. Ruby 1.8.7 Rails 3.2.9
状况:
我长期以来在 rails 2.3.11 下使用 mogilefs-client 都没什么问题
昨天想要试着使用 rails 3.2.9
我装上了许多 gem 都没什么问题,如 rmagick hpricot mysql2 ....
但是在我安装 mogilefs-client 后,却无法使用。
我照着网络上的手册
bash > gem install mogilefs-client
接着我的 GEMFILE
gem 'mogilefs-client', '3.5.0'
启动时发生了状况…,不知道有没有人可以帮帮忙~
/Users/nora/.rvm/gems/ruby-1.8.7-p371/gems/mogilefs-client-3.5.0/lib/
mogilefs/client.rb:7: uninitialized constant MogileFS (NameError)
from /Users/nora/.rvm/gems/ruby-1.8.7-p371/gems/bundler-1.2.3/lib/
bundler/runtime.rb:74:in `require'
from /Users/nora/.rvm/gems/ruby-1.8.7-p371/gems/bundler-1.2.3/lib/
bundler/runtime.rb:74:in `require'
from /Users/nora/.rvm/gems/ruby-1.8.7-p371/gems/bundler-1.2.3/lib/
bundler/runtime.rb:55:in `each'
from /Users/nora/.rvm/gems/ruby-1.8.7-p371/gems/bundler-1.2.3/lib/
bundler/runtime.rb:55:in `require'
from /Users/nora/.rvm/gems/ruby-1.8.7-p371/gems/bundler-1.2.3/lib/
bundler.rb:128:in `require'
from /Users/nora/Sites/fms_3/config/application.rb:7
from /Users/nora/.rvm/gems/ruby-1.8.7-p371/gems/railties-3.2.9/lib/
rails/commands.rb:53:in `require'
from /Users/nora/.rvm/gems/ruby-1.8.7-p371/gems/railties-3.2.9/lib/
rails/commands.rb:53
from /Users/nora/.rvm/gems/ruby-1.8.7-p371/gems/railties-3.2.9/lib/
rails/commands.rb:50:in `tap'
from /Users/nora/.rvm/gems/ruby-1.8.7-p371/gems/railties-3.2.9/lib/
rails/commands.rb:50
from script/rails:6:in `require'
from script/rails:6
附录:
e.g. 程式、连结、参考资料等
作者: tonytonyjan (南洋大兜虫)   2012-02-10 21:22:00
gem install 和 bundle install 不太一样
楼主: isnora (nora)   2012-02-11 09:08:00
bundle install 我也有跑过了, bundle check 也没问题~

Links booklink

Contact Us: admin [ a t ] ucptt.com