if you are a root user then its fine else login as a root or simply pass the following command
su with the root password
tar xfz ruby-1.8.6.tar.gz
this is how one easy way you can install ruby.,
Friday, April 11, 2008
Installing ruby on linux.
Here is a way through which you can easy install a ruby on your linux system