[問題] mogilefs-client 在 ror 3.2.9

看板Ruby作者 (nora)時間12年前 (2012/12/10 08:14), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/4 (看更多)
環境: 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. 程式、連結、參考資料等 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.21.214.253

12/10 21:22, , 1F
gem install 和 bundle install 不太一樣
12/10 21:22, 1F

12/11 09:08, , 2F
bundle install 我也有跑過了, bundle check 也沒問題~
12/11 09:08, 2F
文章代碼(AID): #1GnIbw1S (Ruby)
文章代碼(AID): #1GnIbw1S (Ruby)