无效的 gemspec(Ruby on Rails) [英] Invalid gemspec (Ruby on Rails)
问题描述
我已经在 Linux raspberrypi 3.10.25+ 上成功安装了 ruby on rails.Ruby 版本是 ruby 1.9.3p194.我从 github (https://github.com/iobridge/thingspeak) 导入了一个基于 ruby on rails 的项目.我使用命令行进入项目目录并运行bundle install"并得到以下错误.请注意,甚至没有安装一个包.
I have successfully installed ruby on rails on Linux raspberrypi 3.10.25+. Ruby version is ruby 1.9.3p194. I imported a ruby on rails based project from github (https://github.com/iobridge/thingspeak). Using the command line I went into project's directory and ran "bundle install" and got the following error. Please note that not even a single bundle was installed.
Installing rake 10.3.1
Invalid gemspec in [/tmp/bundler20140528-7444-ym92r7/ZenTest-4.9.5/specifications/ZenTest-4.9.5.gemspec]: Illformed requirement ["< 3.0, >= 1.8"]
Installing ZenTest 4.9.5
Using i18n 0.6.9
Invalid gemspec in [/var/lib/gems/1.9.1/specifications/ZenTest-4.9.5.gemspec]: Illformed requirement ["< 3.0, >= 1.8"]
Installing minitest 4.7.5
Invalid gemspec in [/var/lib/gems/1.9.1/specifications/ZenTest-4.9.5.gemspec]: Illformed requirement ["< 3.0, >= 1.8"]
所有包都显示相同的错误.
The same error was shown for all the bundles.
我该如何解决这个问题?谢谢!
How do I fix this? thanks!
推荐答案
这是一个已知问题.升级您的 RubyGems 并删除并重新安装 ZenTest
gem:
This is a known issue. Upgrade your RubyGems and remove and install again the ZenTest
gem:
gem update --system
gem uninstall ZenTest
gem install ZenTest
这篇关于无效的 gemspec(Ruby on Rails)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!