简体   繁体   English

如何在ruby 1.8.7系统上安装回形针宝石?

[英]How do install paperclip gem on a ruby 1.8.7 system?

I've got an app written for ruby 1.8.7 / rails 2.3.15 and I am stuck with paperclip. 我有一个为ruby 1.8.7 / rails 2.3.15编写的应用程序,但我被曲别针卡住了。 When I try to install the gem I get: 当我尝试安装gem时,我得到:

> ~$ gem install paperclip
ERROR:  Error installing paperclip:
i18n requires Ruby version >= 1.9.3.

When I install a 1.8.7 compatible version of i18n (0.6.x) I get the same error. 当我安装i18n(0.6.x)的1.8.7兼容版本时,出现相同的错误。

I saw some answer here > paperclip 2.7.0 on ruby 1.8.7 , but this one is a few steps ahead (he's got problems with activesupport) and the answer (build the gem yourself) is way beyond my abilities. 我在这里看到了一些答案> ruby 1.8.7上的回形针2.7.0 ,但是这一步比前面几步(他在activesupport上遇到了问题),而答案(自己构建gem)超出了我的能力范围。

Can anyone suggest a viable solution (upgrading the app to 1.9.3 is out of the question)? 谁能建议一个可行的解决方案(将应用程序升级到1.9.3是不可能的)?

I figured it out myself: Just use the -f option with gem install and it will install it regardless of dependencies. 我自己弄清楚了:只需将-f选项与gem install一起使用,它将安装它而不管依赖关系如何。 Thanks everyone. 感谢大家。 And, yes, I know the version is old and outdated and insecure, etc. Who cares, it works :) 而且,是的,我知道该版本过旧,过时且不安全,等等。谁在乎,它会起作用:)

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

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