# Gem install does not work

**URL:** <https://www.ruby-forum.com/t/gem-install-does-not-work/197253>\
**Category:** Deployment\
**Created:** [December 30, 2009, 2:54am UTC](https://www.ruby-forum.com/t/gem-install-does-not-work/197253 "2009-12-30T02:54:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![max\_1219](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@max\_1219](https://www.ruby-forum.com/u/max_1219)\
**Post date:** [December 30, 2009, 2:54am UTC](https://www.ruby-forum.com/t/gem-install-does-not-work/197253/1 "2009-12-30T02:54:56Z")

</div>

newbie in ROR.

Win 7  
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

run admin cmd

gem install rails --include-dependencies

then I got the error here:

ERROR: While executing gem … (Gem::GemNotFoundException)  
Could not find rails (\> 0) in any repository

follow the step to install. any idea on this error?

---

<div class="post-metadata">

**Author:** ![max\_1219](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e99b99/32.png) [@max\_1219](https://www.ruby-forum.com/u/max_1219)\
**Post date:** [March 4, 2010, 2:56am UTC](https://www.ruby-forum.com/t/gem-install-does-not-work/197253/2 "2010-03-04T02:56:43Z")

</div>

check what locations you have set for gem to search for.  
maybe add github?

Max G. wrote:

> newbie in ROR.
> 
> Win 7  
> ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
> 
> run admin cmd
> 
> gem install rails --include-dependencies
> 
> then I got the error here:
> 
> ERROR: While executing gem … (Gem::GemNotFoundException)  
> Could not find rails (\> 0) in any repository
> 
> follow the step to install. any idea on this error?
