我不能用bundle安装sys proctable。即使安装了它也不会停止抱怨:

$ gem install sys-proctable --platform universal-linux
Fetching: sys-proctable-0.9.2-universal-linux.gem (100%)
Successfully installed sys-proctable-0.9.2-universal-linux
1 gem installed

$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Could not find sys-proctable-0.9.2 in any of the sources

$ bundle install --platform universal-linux
Unknown switches '--platform'

$ bundle config build.sys-proctable --platform univeral-linux

$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Could not find sys-proctable-0.9.2 in any of the sources

$ bundle install --without production
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Could not find sys-proctable-0.9.2 in any of the sources

$ grep proctable Gemfile

$  rails console
You have requested:
  pg = 0.12.2

The bundle currently has pg locked at 0.12.2.
Try running `bundle update pg`
Run `bundle install` to install missing gems.

$ uname -a
CYGWIN_NT-5.1 dumbopc 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin

Gemfile:http://pastebin.com/Fre28yTp
gem list --localhttp://pastebin.com/yP0sbHF2
试图将gem 'sys-proctable', '~>0.9.2', :git => 'git://github.com/djberg96/sys-proctable.git'添加到gemfile,但这不起作用:
$ bundle install
Updating git://github.com/djberg96/sys-proctable.git
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Could not find gem 'sys-proctable (~> 0.9.2) ruby' in git://github.com/djberg96/sys-proctable.git (at master).
Source contains 'sys-proctable' at: 0.9.2

最佳答案

除非你展示你的Gemfile,否则无法确定,但你要的宝石似乎是sys-proctable-0.9.2,而不是sys-proctable
确实,在安装之前需要使用bundle config build.sys-proctable --platform univeral-linux才能获得所需的响应,但是gem名称是sys-proctable
编辑
在这个问题https://github.com/djberg96/sys-proctable/issues/24之后,您似乎可以检查是否可以在irb中实际需要它,如果可以,那么就使用它,查看您可以遵循的恼人的消息,并要求它的路径来自本地目录或直接来自其git存储库。
gem 'sys-proctable', :git => 'git://github.com/djberg96/sys-proctable.git'

gem 'sys-proctable', :path => 'path/to/gem/inside/project'

10-08 04:23