我在 Ubuntu 12.04.2 LTS 中安装 paperclip gem 时遇到了问题。
Activesupport 抱怨说它需要它ruby 1.9.3
但我已经安装了。
root@Ubuntu-1204-precise-32-minimal /home/.../releases/current # gem install paperclip -v '3.3.1'
ERROR: Error installing paperclip:
activesupport requires Ruby version >= 1.9.3.
root@Ubuntu-1204-precise-32-minimal /home/.../releases/current # ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
答案1
ruby -S gem install paperclip -v '3.3.1'