paperclip 2.7.0 on ruby 1.8.7

妖精的绣舞 提交于 2019-12-08 07:04:27

问题


I have a very old rails app (rails 2.3.10 and ruby 1.8.7) and we want to move it on another server. I can reinstall all gems with same version except for paperclip 2.7. when i tried to install it i receive an error on activesupport, that it seems it require ruby 1.9.3. According with paperclip doc this shouldn't happens, some one of you can help me? i tried with all gems except paperclip, with no gems, and installing an old version of activesupport. Below you can find my tests.

app@new-server:/home/app/current# sudo gem list

*** LOCAL GEMS ***

app@new-server:/home/app/current# sudo gem install paperclip -v=2.7.0
Fetching: i18n-0.6.4.gem (100%)
Successfully installed i18n-0.6.4
Fetching: multi_json-1.7.7.gem (100%)
Successfully installed multi_json-1.7.7
Fetching: tzinfo-0.3.37.gem (100%)
Successfully installed tzinfo-0.3.37
Fetching: minitest-4.7.5.gem (100%)
Successfully installed minitest-4.7.5
Fetching: atomic-1.1.10.gem (100%)
Building native extensions.  This could take a while...
Successfully installed atomic-1.1.10
Fetching: thread_safe-0.1.0.gem (100%)
Successfully installed thread_safe-0.1.0
ERROR:  Error installing paperclip:
    activesupport requires Ruby version >= 1.9.3.

I also tried to install activesupport 2.3.10 (that according with paperclip doc match requirements but i receive the same error

"activesupport requires Ruby version >= 1.9.3."

regards

Mauro


回答1:


You will have to build the gem manually and use the file from the pull request here: https://github.com/thoughtbot/paperclip/pull/1270. - Ralph



来源:https://stackoverflow.com/questions/17542588/paperclip-2-7-0-on-ruby-1-8-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!