【问题标题】:gem installation ok but not with bundlegem 安装可以,但不能使用 bundle
【发布时间】:2012-09-01 08:32:44
【问题描述】:

我正在尝试安装 pusher-client gem。

我已将其放入我的 Gemfile 中:

gem "pusher-client",:git=>"git://github.com/logankoester/pusher-client.git"

捆绑安装没问题

但是当我启动应用程序时:

/Users/thomas/.rvm/gems/ruby-1.9.2-p318/gems/bundler-1.2.0/lib/bundler/runtime.rb:76:in `require': no such file to load -- pusher/client (LoadError)
from /Users/thomas/.rvm/gems/ruby-1.9.2-p318/gems/bundler-1.2.0/lib/bundler/runtime.rb:76:in `rescue in block in require'
from /Users/thomas/.rvm/gems/ruby-1.9.2-p318/gems/bundler-1.2.0/lib/bundler/runtime.rb:62:in `block in require'
from /Users/thomas/.rvm/gems/ruby-1.9.2-p318/gems/bundler-1.2.0/lib/bundler/runtime.rb:55:in `each'
from /Users/thomas/.rvm/gems/ruby-1.9.2-p318/gems/bundler-1.2.0/lib/bundler/runtime.rb:55:in `require'
from /Users/thomas/.rvm/gems/ruby-1.9.2-p318/gems/bundler-1.2.0/lib/bundler.rb:128:in `require'
from /Users/thomas/Documents/TweetTv/server/tvtweet/config/application.rb:12:in `<top (required)>'
from /Users/thomas/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.1.0/lib/rails/commands.rb:38:in `require'
from /Users/thomas/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.1.0/lib/rails/commands.rb:38:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

似乎与 gem 名称中的 - 相关联,但其他 gem 安装正确。

任何帮助或建议都非常感谢...

【问题讨论】:

    标签: ruby-on-rails gem bundle pusher


    【解决方案1】:

    您的git 路径错误。如果您访问 GitHub 上的 the repository,您会看到代码已移至 here。

    您应该在 Gemfile 中执行此操作:

    gem 'pusher-client', :git => "git://github.com/pusher/pusher-ruby-client.git"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-21
      • 2018-11-30
      • 1970-01-01
      • 2023-04-09
      • 1970-01-01
      • 1970-01-01
      • 2019-04-13
      • 1970-01-01
      相关资源
      最近更新 更多