ruby1.8.7上的回形针2.7.0

我有一个非常古老的rails应用程序(rails 2.3.10和ruby 1.8.7),我们想在另一台服务器上移动它。 除了paperclip 2.7,我可以重新安装所有相同版本的gem。 当我试图安装它时,我在activesupport上收到一个错误,它似乎需要ruby 1.9.3。 根据paperclip doc,这不应该发生,你们中的一些人可以帮助我吗? 我尝试了所有gem,除了回形针,没有gem,并安装旧版本的activesupport。 您可以在下面找到我的测试。

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. 

我还尝试安装activesupport 2.3.10(根据paperclip doc匹配要求,但我收到相同的错误

 "activesupport requires Ruby version >= 1.9.3." 

问候

毛罗

您必须手动构建gem并使用pull请求中的文件: https : //github.com/thoughtbot/paperclip/pull/1270 。 – 拉尔夫