Invalid gemspec (Ruby on Rails)

匿名 (未验证) 提交于 2019-12-03 10:24:21

问题:

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!

回答1:

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


转载请标明出处:Invalid gemspec (Ruby on Rails)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!