我之前已经将ZenTest添加到我的gemfile中,以使autotest能够运行。在这种情况下,我收到以下错误四次:
saasbook@saasbook:~/Documents/github/LocalSupport$ bundle exec autotest
Invalid gemspec in [/usr/local/lib/ruby/gems/1.9.1/specifications/ZenTest-4.9.0.gemspec]: Illformed requirement ["< 2.1, >= 1.8"]我已经搜索了这个错误,并在ZenTest的github代码库中找到了许多讨论:
https://github.com/seattlerb/zentest/issues/29 https://github.com/seattlerb/zentest/issues/32 https://github.com/seattlerb/zentest/issues/33
我听从了那里的一些建议,卸载并重新安装了ZenTest,但没有安装joy。我在运行Ruby1.9.2p290(32553-07-09修订版)的ubuntu上运行i686-linux
我的整个应用程序都在这里:
https://github.com/tansaku/LocalSupport
例如,你可以查看我的GemFile:
https://github.com/tansaku/LocalSupport/blob/master/Gemfile
有什么想法吗?
非常感谢你提前
发布于 2013-02-21 23:42:38
我只是通过编辑修复了这个问题
/usr/local/lib/ruby/gems/1.9.1/specifications/ZenTest-4.9.0.gemspec
因此,指定rubygems版本的代码行现在是:
s.required_rubygems_version = Gem::Requirement.new("< 2.1") if s.respond_to? :required_rubygems_version=现在一切都很好..。
发布于 2013-08-22 00:58:24
升级rubygems并重新安装ZenTest (根据Sam写的)解决了我的问题,但它也给我带来了另一个问题:
/Users/neo/.rvm/gems/ruby-1.9.2-p320/gems/bundler-1.2.3/lib/bundler/rubygems_integration.rb:187:in `stub_source_index170': uninitialized constant Gem::SourceIndex (NameError)我想做的任何事情,从运行自动测试到启动rails服务器,它都会给我这个错误。在搜索了一下之后,我找到了this页面。rubygems的最新版本似乎有一些bug,所以你不应该将其升级到最新版本,而应该将其升级到更稳定的版本,如1.8.24。
https://stackoverflow.com/questions/15006181
复制相似问题