It should work. It worked for me.
also I only used one hyphen
gem install rails -v=1.1.6
instead of
gem install rails --v=1.1.6
What version of ruby, gems, rails and rake do you have? here is what I
have.
C:\ruby\lib\ruby>ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
C:\ruby\lib\ruby>gem -v
0.9.4
C:\ruby\lib\ruby>rails -v
Rails 2.0.2
C:\ruby\lib\ruby>rake --version
rake, version 0.8.1
here is what I typed and the result. At the bottom of that mess are
instructions to re-install Gems 1.0.1. You might play with that and
google a bit on unstable gem versions like 0.95. I am thinking that I
once had gems 1.01 and downgrade to 0.9.4 but I can’t remember
C:\ruby\lib\ruby>gem install rails -v=1.1.6
Bulk updating Gem source index for: http://gems.rubyforge.org
Install required dependency activesupport? [Yn] y
Install required dependency activerecord? [Yn] y
Install required dependency actionpack? [Yn] y
Install required dependency actionmailer? [Yn] y
Install required dependency actionwebservice? [Yn] y
Successfully installed rails-1.1.6
Successfully installed activesupport-1.3.1
Successfully installed activerecord-1.14.4
Successfully installed actionpack-1.12.5
Successfully installed actionmailer-1.2.5
Successfully installed actionwebservice-1.1.6
Installing ri documentation for activesupport-1.3.1…
While generating documentation for activesupport-1.3.1
… MESSAGE: Unhandled special: Special: type=17, text=“”
… RDOC args: --ri --op c:/ruby/lib/ruby/gems/1.8/doc/
activesupport-1.3.1/ri –
quiet lib
(continuing with the rest of the installation)
Installing ri documentation for activerecord-1.14.4…
Installing ri documentation for actionpack-1.12.5…
While generating documentation for actionpack-1.12.5
… MESSAGE: Unhandled special: Special: type=17, text=“”
… RDOC args: --ri --op c:/ruby/lib/ruby/gems/1.8/doc/
actionpack-1.12.5/ri --qu
iet lib
(continuing with the rest of the installation)
Installing ri documentation for actionmailer-1.2.5…
Installing ri documentation for actionwebservice-1.1.6…
Installing RDoc documentation for activesupport-1.3.1…
Installing RDoc documentation for activerecord-1.14.4…
Installing RDoc documentation for actionpack-1.12.5…
Installing RDoc documentation for actionmailer-1.2.5…
Installing RDoc documentation for actionwebservice-1.1.6…
C:\ruby\lib\ruby>
instructions for reinstalling gems 1.01
1.Uninstall the current rails - gem uninstall rails
2. Uninstall the current rake - gem uninstall rake (with out this
rails installation was throwing error)
3.clean up - gem clean
4.Down load the gems 1.0.1, unzip it
5.cd to the gems unziped folder
6.install new gem - ruby setup.rb
7. verify - gem -v , should report 1.0.1
8.clean up again - gem clean
9.Install rake - gem install rake , this will install rake 0.8.1
10.install rails - gem install rails thats it…it took some combos
for
me to figure this out
Are you using a localized version of windows?
On Apr 24, 7:31 pm, “Ricardo A.” [email protected] wrote:
ERROR: could not find rails locally or in a repository
gem sources -r gems.rubyonrails.org
C:\Windows\System32>gem environment