1
我有一個很老的rails應用(rails 2.3.10和ruby 1.8.7),我們想在另一臺服務器上移動它。 我可以重新安裝除回形針2.7以外的相同版本的所有寶石。 當我試圖安裝它,我收到有關支持的錯誤,似乎它需要紅寶石1.9.3。根據回形針文件,這不應該發生,你們中的一些人可以幫助我嗎? 我試過除了回形針之外的所有寶石,沒有寶石,並安裝了舊版本的activesupport。在下面你可以找到我的測試。在紅寶石上的回形針2.7.0 1.8.7
[email protected]:/home/app/current# sudo gem list
*** LOCAL GEMS ***
[email protected]:/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(與回形針文檔匹配的要求,但根據我收到同樣的錯誤
"activesupport requires Ruby version >= 1.9.3."
問候
莫羅
請顯示您的GemFile。 –
該問題與GemFile無關,在安裝Rails應用程序之前安裝了回形針,我無法在沒有任何其他寶石的情況下安裝它。 – Mauro
該問題可能是由於安裝'activesupport'gem,爲什麼我需要查看gemfile。你使用RVM嗎? –