开发者

ActiveSupport requires Ruby version >= 1.8.7 on Ubuntu

I'm currently setting up a new server, and started off with an Ubuntu 8.0开发者_如何学Python4 image with a version of Ruby and Rails already preinstalled (I thought it would be easier), and after getting my app running (with a few gems installed), the command line is throwing a wobbly, and trying to install the "Paperclip" gem, is giving the following error:

 activesupport requires ruby version >= 1.8.7

Running ruby -v tells me I'm on 1.8.6, but for the life of me, I have no idea how to update Ruby from the command line.

So, any advice for a) how to get Paperclip to work and b) ensure activesupport doesn't run into this error again, would be most welcome!


Try rvm ruby version manager, https://rvm.io .you can have multiple versions of ruby and gems are shared or unique to each version.


sudo apt-get install ruby-full should work

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜