# My First Rail - script/server not working

**URL:** <https://www.ruby-forum.com/t/my-first-rail-script-server-not-working/113465>\
**Category:** Rails\
**Created:** [August 31, 2007, 11:29am UTC](https://www.ruby-forum.com/t/my-first-rail-script-server-not-working/113465 "2007-08-31T11:29:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![foolishbrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Post date:** [August 31, 2007, 11:29am UTC](https://www.ruby-forum.com/t/my-first-rail-script-server-not-working/113465/1 "2007-08-31T11:29:57Z")

</div>

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

–  
foolishbrat

---

<div class="post-metadata">

**Author:** ![foolishbrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Post date:** [August 31, 2007, 12:36pm UTC](https://www.ruby-forum.com/t/my-first-rail-script-server-not-working/113465/2 "2007-08-31T12:36:20Z")

</div>

Hi,

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

```

there in ruby installation.

On 8/31/07, foolishbrat [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> create app/helpers  
> rubygems (LoadError)
> 
> >

–  
Regards,  
Oviyan

Blog : [http://www.oviyas.blogspot.com/](http://www.oviyas.blogspot.com/)  
contact : +919841141729

---

<div class="post-metadata">

**Author:** ![foolishbrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Post date:** [August 31, 2007, 12:57pm UTC](https://www.ruby-forum.com/t/my-first-rail-script-server-not-working/113465/3 "2007-08-31T12:57:22Z")

</div>

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](http://docs.rubygems.org/read/chapter/3)

–  
Michael W.

---

<div class="post-metadata">

**Author:** ![foolishbrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://www.ruby-forum.com/u/foolishbrat)\
**Post date:** [August 31, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/my-first-rail-script-server-not-working/113465/4 "2007-08-31T15:15:53Z")

</div>

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
> 
> –  
> foolishbrat

Try [www.hivelogic.com](http://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?
