简体   繁体   中英

ActiveSupport requires Ruby version >= 1.8.7 on Ubuntu

I'm currently setting up a new server, and started off with an Ubuntu 8.04 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!

sudo apt-get install ruby-full应该可以工作

尝试rvm ruby​​版本管理器https://rvm.io。您可以拥有多个ruby版本,每个版本的gem都是共享的或唯一的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM