I bought the book Simply Rails 2 and I would like to follow along with everything so I can get the most out of it. I downloaded InstantRails as per the instructions, but when I enter the command
I have tried turning off the firewall and still no luck. I also tried just installing ruby via the one-click installer, but when I try to use cmd to check even if it’s installed –
C:\\> ruby -v
I get this error message:
‘C:\’ is not recognized as an internal or external command, operable program or batch file.
because that URL your Gems are trying to use is not correct. This has apparently hit various versions of Ruby including JRuby so I guess it was a pretty major bug.
Edit: if either of you do a Gems update and this fixes the problem, could you post an affirmation? It would be nice to know if just an update works, esp since it seems one of you is on Windows and the other on Linux. Thanks.
That error message looks like you might be typing the “C:\>” part. That’s just the prompt. You should only be typing “ruby -v”. Can you try that and let us know what you see?
I am having the same problem and error message. If as suggested this is a ‘bug’ in the books code, were do we get the correct code. Or were do we get the instructions to overcome the problem?
Thanks very much for your prompt reply and help, much appreciated!
No I did not confuse the command prompt as part of the command, typing only ‘gem update --system’. In case it matters I’m running Windows 7 64 bit on a Dell Laptop.
Next problem the ‘autoexec.bat’ file does not exist. I have run the setup twice on one machine and once on another, being very pedantic in following the books instructions. Windows can find only 3 ‘*.bat’ files.
configure.bat
C:\InstantRails\ruby\src\ruby-1.8.6-p111\win32
Something, I just remember running into stuff on teh interwebs stating there’s no autoexec.bat in XP back when I was trying to get Lynx to run on the Windows machine at work : )
I wonder if the author has an update for these folks, especially the ones running 64bit? The Ruby posted above seems all 32-bit oriented.