Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Zakry Zapata
Zakry Zapata
15,494 Points

How to I update my version of ruby on Ubuntu?

My environment is currently using ruby version 2.2.1, but I have installed ruby 2.2.4, but I am not sure how to get my system to use it. Does anyone know how to actually have this version replace 2.2.1 in all my apps?

I did sudo apt-get install ruby -v 2.2.4, but all it did was install it somehwere, it did not actually replace 2.2.1 with 2.2.4, i.e., when I use ruby -v it gives me 2.2.1

Hi Zakry,

Start using RVM. It's really the best way to ensure correct functionality now and in the future, or even if you actually need a lot of different versions.

Check http://tecadmin.net/install-ruby-on-rails-on-ubuntu/ for a very clear, step by step documentation how to set it up on Ubuntu (and other distro's).

2 Answers

Zakry Zapata
Zakry Zapata
15,494 Points

Thank, this was what I needed

most welcome !