fnordmetric gem中的gemspec无效

时间:2013-01-19 04:38:03

标签: ruby-on-rails rubygems

我在ubuntu 11.10中使用rails应用程序。我尝试使用此命令安装fnordmetric gem

sudo gem install fnordmetric

安装时在控制台中显示如下

Fetching: bson-1.8.2.gem (100%)
Successfully installed fnordmetric-1.0.0
Successfully installed bson-1.8.2
2 gems installed
Installing ri documentation for fnordmetric-1.0.0...
Installing ri documentation for bson-1.8.2...
Installing RDoc documentation for fnordmetric-1.0.0...
Installing RDoc documentation for bson-1.8.2...

我在我的gem文件中包含了fnordmetric gem

gem 'fnordmetric'

之后我做了

sudo bundle install

Gem已安装但在宝石列表中未显示fnordmetric gem。 我在编写脚本/服务器时收到此错误。

Invalid gemspec in [/usr/local/lib/ruby/gems/1.8/specifications/fnordmetric-1.0.0.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0xc821cb4> 0.4.0"]
Invalid gemspec in [/home/paddu/Documents/fnordmetric/ts-delayed-delta/ruby/1.8/specifications/fnordmetric-1.0.0.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0x9569204> 0.4.0"]
Invalid gemspec in [/home/paddu/Documents/fnordmetric/ts-delayed-delta/ruby/1.8/specifications/fnordmetric-1.0.0.gemspec]: Illformed requirement ["#<YAML::Syck::DefaultKey:0x9569204> 0.4.0"]
/home/paddu/Documents/fnordmetric/config/../config/preinitializer.rb:18: Bundler couldn't find some gems.Did you run `bundle install`? (RuntimeError)
    from /home/paddu/Documents/fnordmetric/config/boot.rb:28:in `load'
    from /home/paddu/Documents/fnordmetric/config/boot.rb:28:in `preinitialize'
    from /home/paddu/Documents/fnordmetric/config/boot.rb:10:in `boot!'
    from /home/paddu/Documents/fnordmetric/config/boot.rb:122
    from script/server:2:in `require'
    from script/server:2

任何人都可以建议如何解决此问题。 提前致谢

0 个答案:

没有答案