regarding installation

Hello I am using Linux ubuntu 10.04
I have problems while setting up ruby on rails.
I am following the steps given in the book Agile web development with rails.
Can anyone please help.

Thank you!

Probably, but only if you describe what you've done, what you are doing and what problems you are having.

Best Wishes,

Well i already had ruby 1.8.7 already installed on my distro
i installed rubygems 1.3.7
but when i give thee command
tar xzf rubygems-1.3.7.tar.gz or tar .xvzf rubygems-1.3.7.tgz it gives an error

same is the case with rails

i am following the instructions given in the book ‘Agile web development with rails’

it would be great if you could explain me frm scratch.