My First Rail - script/server not working

Hi,

I am trying my first Rail apps. I had successfully created directory with this command

prompt > rails library create create app/controllers create app/helpers ......

However when I tried to run the server, it gives such error:

prompt > cd library prompt > ls app components config db doc lib log public Rakefile README script test tmp vendor prompt > ruby script/server ./script/../config/boot.rb:18:in `require': no such file to load -- rubygems (LoadError) from ./script/../config/boot.rb:18 from script/server:2:in `require' from script/server:2

Why was that? How can I resolve the problem? I am using: Rails 1.2.2

Hi,

Check whether ruby installed properly or not.I think problem must be there in ruby installation.

foolishbrat wrote:

Hi,

I am trying my first Rail apps. I had successfully created directory with this command

prompt > rails library create create app/controllers create app/helpers ......

However when I tried to run the server, it gives such error:

prompt > cd library prompt > ls app components config db doc lib log public Rakefile README script test tmp vendor prompt > ruby script/server ./script/../config/boot.rb:18:in `require': no such file to load -- rubygems (LoadError) from ./script/../config/boot.rb:18 from script/server:2:in `require' from script/server:2

Why was that? How can I resolve the problem? I am using: Rails 1.2.2

You need to install RubyGems:

http://docs.rubygems.org/read/chapter/3