问题描述
我有一个很老的rails应用程序(rails 2.3.10和ruby 1.8.7),我们想在另一台服务器上移动它。
除了回形针2.7以外,我可以用相同的版本重新安装所有的宝石。
当我尝试安装它时,我收到activesupport上的错误,它似乎需要ruby 1.9.3。根据回形针文件,这不应该发生,你们中的一些人可以帮助我吗?
我尝试了除回形针之外的所有宝石,没有宝石,并安装了旧版本的activesupport。在下面你可以找到我的测试。
app @ new-server:/ home / app / current#sudo gem list
** *本地GEMS ***
app @ new-server:/ home / app / current#sudo gem install paperclip -v = 2.7.0
提取:i18n-0.6.4.gem (100%)
成功安装i18n-0.6.4
提取:multi_json-1.7.7.gem(100%)
成功安装multi_json-1.7.7
提取:tzinfo -0.3.37.gem(100%)
成功安装tzinfo-0.3.37
提取:minitest-4.7.5.gem(100%)
成功安装minitest-4.7.5
提取:atomic-1.1.10.gem(100%)
构建原生扩展。这可能需要一段时间...
成功安装了atomic-1.1.10
提取:thread_safe-0.1.0.gem(100%)
成功安装了thread_safe-0.1.0
错误:安装回形针时出错:
activesupport需要Ruby版本> = 1.9.3。
我也尝试安装activesupport 2.3.10(根据paperclip doc匹配要求,但我收到同样的错误
activesupport需要Ruby版本> = 1.9.3。
问候
Mauro
您必须手动构建gem,并使用pull请求中的文件:。 - 拉尔夫
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
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
这篇关于在红宝石1.8.7上的回形针2.7.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!