GEM: Command not Found

Issues related to building and deploying Ruby on Rails.
no avatar
Posts: 1
Joined: Tue Feb 01, 2011 3:19 am

GEM: Command not Found

by micsteel » Tue Feb 01, 2011 3:33 am

I am really new and have not done any programming in a long time so this may seem like a dumb question but - When I do this step:
3. Now use RubyGems to install Rails. Still in the Terminal application, issue the following command.

tp> sudo gem install rails --include-dependencies

I get a return statement - sudo: gem: command not found

Any suggestions about what is happening. I am showing a ruby version 1.8.2

Thank you!
Mike Steelman

no avatar
Posts: 1
Joined: Thu Mar 17, 2011 2:17 pm

by hannah1 » Thu Mar 17, 2011 2:22 pm

I think you have to add line to your ~/.bashrc so that you don't have to type in this command each time.

no avatar
Posts: 1
Joined: Tue Feb 21, 2012 8:28 pm

by bornaresagar » Tue Feb 21, 2012 8:30 pm

If you are on windows platform try setting the PATH variable in environment variable it may resolve your issue.

Return to Ruby on Rails