I use Vagrant and Chef to create new servers when I am developing. I want to start out on Ruby on Rails so I am setting up a server. Everything is working but Ubuntu and Rails are reporting different Ruby versions.
Ubuntu 12.04: ruby -v = ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
Rails = 1.8.7 (x86_64-linux)
I don't want Ruby 1.8.7 on the system at all but I can't get rid of it. Is there anyway to set a default Ruby version?
I don't want top use RVM or similar.
try this aptitude purge ruby
and then install the latest version or the version you want
came across this post in stackoverflow How do I make Ruby 1.9 the default Ruby on Ubuntu?
This did the trick.
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.