0

我正在尝试安装 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 安装正确。

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

4

1 回答 1

2

你的git路径是错误的。如果您访问GitHub 上的存储库,您会看到代码已移至此处

您应该Gemfile改为:

gem 'pusher-client', :git => "git://github.com/pusher/pusher-ruby-client.git"
于 2012-09-01T09:25:02.460 回答