sudo: gem: command not found

you can get error like: sudo: gem: command not found
you can type in the terminal "sudo apt-get install rails rails-doc
rails-ruby1.8" and next type "sudo gem install rails mysql
sqlite3-ruby mongrel" rails will be install

any help go to "http://venkatinlinux.blogspot.com" and search rails
installation

Regards
venkat