Ruby Gem Bundle 问题 - 在任何源中都找不到 paperclip-2.3.16

发布于 2024-12-01 23:45:50 字数 2248 浏览 0 评论 0原文

我是 Ruby on Rails 的新手,我正在按照项目的书面说明设置开发环境。但是我遇到了一个问题,我收到的错误消息几乎没有返回任何谷歌结果。

我使用的是 Windows 7 64 位,Ruby 1.8.7,通过 RailsInstaller 和 mysql2 安装。问题似乎出在 Paperclip gem 上(我不知道它的作用,或者我是否需要它,但它是我正在加入的项目的一部分)。

我正在尝试运行 rake 命令,但得到以下信息(我还包括了捆绑包安装结果):

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

任何帮助将不胜感激!谢谢。

I'm new to Ruby on Rails, and I'm setting up a dev environment following written instructions for a project. However I'm running into an issue and the error message I get barely returns any google results.

I'm on Windows 7 64 bit, Ruby 1.8.7, installed via RailsInstaller with mysql2. The issue seems to be with the Paperclip gem (I don't know what it does, or if I need it, but it's part of the project I'm joining).

I'm trying to run a rake command but I get the following (I also included the bundle install results):

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

Any help would be greatly appreciated! Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

謸气贵蔟 2024-12-08 23:45:50

结果将我的 ruby​​gems 版本更新到 1.8.10 解决了问题。

Turns out updating my rubygems version to 1.8.10 solved the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文