Checkout rubygems.org find a gem you want to install and do

gem install gem-name

so

gem install rails

as an example. You might need to use sudo so

sudo gem install rails.
---
Buddy Lindsey
http://www.buddylindsey.com
http://www.twitter.com/buddylindsey



On Tue, Oct 11, 2011 at 1:40 PM, Sam Porwal <pawan.porwal / hotmail.com> wrote:
> Hi All,
>          
> my problem will get resolved.
>
> [root@server ~]# which ruby
> /usr/bin/ruby
> [root@server ~]# which gem
> /usr/bin/which: no gem in
> (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin:/usr/local/nz/bin:)
> [root@smqa-devdb3 ~]# gem list
> bash: gem: command not found
> [root@server ~]# ruby -v
> ruby 1.8.5 (2006-08-25) [x86_64-linux]
>
> How I can install gems? I want to install gems. I am able to run all
> ruby scripts like test.rb.
>
> Please help me out.
>
> Thanks!
>
> --
> Posted via http://www.ruby-forum.com/.
>
>