# My First Rail - script/server not working

**URL:** <https://discuss.rubyonrails.org/t/my-first-rail-script-server-not-working/17625>\
**Category:** rubyonrails-talk\
**Created:** [August 31, 2007, 9:28am UTC](https://discuss.rubyonrails.org/t/my-first-rail-script-server-not-working/17625 "2007-08-31T09:28:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![foolishbrat](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@foolishbrat](https://discuss.rubyonrails.org/u/foolishbrat)\
**Post date:** [August 31, 2007, 9:28am UTC](https://discuss.rubyonrails.org/t/my-first-rail-script-server-not-working/17625/1 "2007-08-31T09:28:51Z")

</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

---

<div class="post-metadata">

**Author:** ![oviya\_selvan](https://avatars.discourse-cdn.com/v4/letter/o/a8b319/32.png) [@oviya\_selvan](https://discuss.rubyonrails.org/u/oviya_selvan)\
**Post date:** [August 31, 2007, 10:35am UTC](https://discuss.rubyonrails.org/t/my-first-rail-script-server-not-working/17625/2 "2007-08-31T10:35:30Z")

</div>

Hi,

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

```

---

<div class="post-metadata">

**Author:** ![Michael\_Wang](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Michael\_Wang](https://discuss.rubyonrails.org/u/Michael_Wang)\
**Post date:** [August 31, 2007, 10:56am UTC](https://discuss.rubyonrails.org/t/my-first-rail-script-server-not-working/17625/3 "2007-08-31T10:56:08Z")

</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

You need to install RubyGems:

[http://docs.rubygems.org/read/chapter/3](http://docs.rubygems.org/read/chapter/3)
