在红宝石1.8.7上的回形针2.7.0

编程入门 行业动态 更新时间:2024-10-27 17:14:27
本文介绍了在红宝石1.8.7上的回形针2.7.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个很老的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请求中的文件: github/thoughtbot/paperclip/pull/1270 。 - 拉尔夫

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: github/thoughtbot/paperclip/pull/1270. - Ralph

更多推荐

在红宝石1.8.7上的回形针2.7.0

本文发布于:2023-10-26 20:40:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1531288.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:回形针   红宝石

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!