我是Ruby on Rails的新手,我正在按照项目的书面说明设置开发环境。但是我遇到了一个问题而且我收到的错误消息几乎没有返回任何谷歌搜索结果。
我使用的是Windows 7 64位,Ruby 1.8.7,通过RailsInstaller和mysql2安装。这个问题似乎与Paperclip宝石有关(我不知道它做了什么,或者我是否需要它,但它是我加入的项目的一部分)。
我正在尝试运行rake命令但是我得到以下内容(我还包括了bundle安装结果):
C:\Sites\mcd-acorn>bundle install
Invalid gemspec in [C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/specifications
/paperclip-2.3.16.gemspec]: invalid date format in specification: "2011-07-29 00
:00:00.000000000Z"
Invalid gemspec in [C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/specifications
/paperclip-2.3.16.gemspec]: invalid date format in specification: "2011-07-29 00
:00:00.000000000Z"
Fetching source index for http://rubygems.org/
Using rake (0.9.2)
Using abstract (1.0.0)
Using activesupport (3.0.9)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.9)
Using erubis (2.6.6)
Using rack (1.2.3)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.29)
Using actionpack (3.0.9)
Using mime-types (1.16)
Using polyglot (0.3.2)
Using treetop (1.4.10)
Using mail (2.2.19)
Using actionmailer (3.0.9)
Using arel (2.0.10)
Using activerecord (3.0.9)
Using activeresource (3.0.9)
Using bundler (1.0.15)
Using cancan (1.6.5)
Using highline (1.6.2)
Using net-ssh (2.1.4)
Using net-scp (1.0.4)
Using net-sftp (2.0.5)
Using net-ssh-gateway (1.1.0)
Using capistrano (2.8.0)
Using carmen (0.2.8)
Using cocaine (0.1.0)
Using formtastic (1.2.4)
Using haml (3.1.2)
Using mysql2 (0.2.11)
Using net-ldap (0.2.2)
Installing paperclip (2.3.16)
Using rdoc (3.9.1)
Using thor (0.14.6)
Using railties (3.0.9)
Using rails (3.0.9)
Using sass (3.1.7)
Using warden (1.0.5)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem
is installed.
C:\Sites\mcd-acorn>bundle exec rake db:reset
Invalid gemspec in [C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/specifications
/paperclip-2.3.16.gemspec]: invalid date format in specification: "2011-07-29 00
:00:00.000000000Z"
Invalid gemspec in [C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/specifications
/paperclip-2.3.16.gemspec]: invalid date format in specification: "2011-07-29 00
:00:00.000000000Z"
Could not find paperclip-2.3.16 in any of the sources
任何帮助将不胜感激!感谢。
答案 0 :(得分:2)
结果将我的rubygems版本更新到1.8.10解决了这个问题。