Note that the complete procedure might take a few hours on a Amazon Micro instance. Deleting the old version of Ruby also removes the package aws-amitools-ec2. As long as you don’t need to create your own AMIs with this instance, you will be fine.
Here is the procedure, as usual log in as ec2-user and perform the following from the shell:
sudo su -
yum remove ruby
yum groupinstall 'Development Tools'
yum groupinstall development-libs
yum install libffi-devel
yum install libyaml-devel
tar xzvf ruby-2.0.0-p195.tar.gz
gem update –system
ruby --version (this should give you the newly installed version)
I did not get any errors related to Doxygen this time (the dreaded "make: *** [doc/capi/.timestamp] Killed"). If you do, please refer to our earlier post on how to fix this by installing the latest version of Doxygen from source.
That’s it! Have fun with Ruby!