简体   繁体   English

无效的gemspec(Ruby on Rails)

[英]Invalid gemspec (Ruby on Rails)

I have successfully installed ruby on rails on Linux raspberrypi 3.10.25+. 我已经在Linux raspberrypi 3.10.25+的滑轨上成功安装了ruby。 Ruby version is ruby 1.9.3p194. Ruby版本是ruby 1.9.3p194。 I imported a ruby on rails based project from github ( https://github.com/iobridge/thingspeak ). 我从github( https://github.com/iobridge/thingspeak )导入了基于Rails的项目中的ruby。 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! 谢谢!

This is a known issue . 这是一个已知问题 Upgrade your RubyGems and remove and install again the ZenTest gem: 升级RubyGems并删除并再次安装ZenTest gem:

gem update --system
gem uninstall ZenTest
gem install ZenTest

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM