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:inrequire’
from script/server:2

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


foolishbrat

Hi,

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

there in ruby installation.

On 8/31/07, foolishbrat [email protected] wrote:

create app/helpers
rubygems (LoadError)


Regards,
Oviyan

Blog : http://www.oviyas.blogspot.com/
contact : +919841141729

foolishbrat wrote:

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


Michael W.

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:inrequire’
from script/server:2

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


foolishbrat

Try www.hivelogic.com for a tutorial on how to install Rails Properly.

If this isn’t the problem, then perhaps double check that you are in the
right directory - that is, your app directory?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs