Please Help: Can not install Ruby on Windows XP
I just bought the "Build Your Own Ruby on Rails Web Applications" by patrick Lenz. I am using windows xp. I followed the given installation instruction. Until page 43 which says you can start your own application by doing the following:
1. cd shovell
2 ruby script/server
However. mine is not working. Please let me know what to do. Here what I did:
C:\InstantRails>gem install rails --include-dependencies
Attempting local installation of 'rails'
Local gem file not found: rails*.gem
Attempting remote installation of 'rails'
Updating Gem source index for: http://gems.rubyforge.org
Successfully installed rails-1.2.3
Successfully installed rake-0.7.3
Successfully installed activesupport-1.4.2
Successfully installed activerecord-1.15.3
Successfully installed actionpack-1.13.3
Successfully installed actionmailer-1.3.3
Successfully installed actionwebservice-1.2.3
Installing RDoc documentation for rake-0.7.3...
Installing RDoc documentation for activesupport-1.4.2...
Installing RDoc documentation for activerecord-1.15.3...
Installing RDoc documentation for actionpack-1.13.3...
lib/action_controller/routing.rb:1061:30: ':' not followed by identified or oper
lib/action_controller/routing.rb:1065:39: ':' not followed by identified or oper
Installing RDoc documentation for actionmailer-1.3.3...
Installing RDoc documentation for actionwebservice-1.2.3...
Volume in drive C has no label.
Volume Serial Number is 00CF-A337
Directory of C:\InstantRails\rails_apps
07/01/2007 01:42 PM <DIR> .
07/01/2007 01:42 PM <DIR> ..
07/01/2007 01:42 PM <DIR> cookbook
07/01/2007 01:42 PM <DIR> typo-2.6.0
0 File(s) 0 bytes
4 Dir(s) 815,230,976 bytes free
./script/../config/boot.rb:29: undefined method `gem' for main:Object (NoMethodE
My problem has been fixed!!!
I needed to do the following command first:
gem update --system
then I can do:
ruby script/ server
By the way, I got this solution from the the author!!!! I emailed him before I post my problem in this forum and he just responded to me!!!!