Problem with gem

I am trying to install rails on OSX, but gem does not seem to be
working. I type in the command and it does nothing, there is no error
message. It does this for any command, such as gem -v. Any help is

Hi Bryan.

Hope these steps will help you

Note: Installing X-Code is must for dependent installation files