# Issues running ruby script/server.....

**URL:** <https://discuss.rubyonrails.org/t/issues-running-ruby-script-server/51583>\
**Category:** rubyonrails-talk\
**Created:** [May 12, 2010, 12:48pm UTC](https://discuss.rubyonrails.org/t/issues-running-ruby-script-server/51583 "2010-05-12T12:48:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [May 12, 2010, 12:48pm UTC](https://discuss.rubyonrails.org/t/issues-running-ruby-script-server/51583/1 "2010-05-12T12:48:25Z")

</div>

I had fixed the below error long time back...and now it's back again....... I have no clue how it happened....help would be appreciated thanks....

unknown0011248da679:~/hello faisal$ ruby script/server Rails requires RubyGems \>= 1.3.2. Please install RubyGems and try again: [http://rubygems.rubyforge.org](http://rubygems.rubyforge.org)

---

<div class="post-metadata">

**Author:** ![Colin\_Law1](https://avatars.discourse-cdn.com/v4/letter/c/91b2a8/32.png) [@Colin\_Law1](https://discuss.rubyonrails.org/u/Colin_Law1)\
**Post date:** [May 12, 2010, 12:51pm UTC](https://discuss.rubyonrails.org/t/issues-running-ruby-script-server/51583/2 "2010-05-12T12:51:31Z")

</div>

Did you check which version you have and attempt update if appropriate?

Colin

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [May 12, 2010, 1:12pm UTC](https://discuss.rubyonrails.org/t/issues-running-ruby-script-server/51583/3 "2010-05-12T13:12:35Z")

</div>

Colin Law wrote:

> > I had fixed the below error long time back...and now it's back again....... I have no clue how it happened....help �would be appreciated thanks....
> > 
> > unknown0011248da679:~/hello faisal$ ruby script/server Rails requires RubyGems \>= 1.3.2. Please install RubyGems and try again: [http://rubygems.rubyforge.org](http://rubygems.rubyforge.org)
> 
> Did you check which version you have and attempt update if appropriate?
> 
> Colin

k this is wat i did

unknown0011248da679:~/hello faisal$ gem -v 1.3.6 unknown0011248da679:~/hello faisal$ which gem /usr/local/bin/gem unknown0011248da679:~/hello faisal$ whereis gem unknown0011248da679:~/hello faisal$ which rails /usr/local/bin/rails unknown0011248da679:~/hello faisal$ whereis rails unknown0011248da679:~/hello faisal$ /usr/local/bin/gem -v 1.3.6 unknown0011248da679:~/hello faisal$ /usr/local/bin/rails -v Rails 2.3.5

so I tried updating this is what I got

unknown0011248da679:~ faisal$ sudo gem update --system Password: Updating RubyGems Nothing to update unknown0011248da679:~ faisal$

---

<div class="post-metadata">

**Author:** ![hassan](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/hassan/32/714_2.png) [@hassan](https://discuss.rubyonrails.org/u/hassan)\
**Post date:** [May 12, 2010, 1:29pm UTC](https://discuss.rubyonrails.org/t/issues-running-ruby-script-server/51583/4 "2010-05-12T13:29:47Z")

</div>

But the command that's "failing" isn't gem or rails, it's `ruby` 🙂 so that implies you have a different one than you think first in your path.

What does `which ruby` return?

Also, try `ruby -S gem -v`

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [May 12, 2010, 1:36pm UTC](https://discuss.rubyonrails.org/t/issues-running-ruby-script-server/51583/5 "2010-05-12T13:36:06Z")

</div>

Hassan Schroeder wrote:

> > > > unknown0011248da679:~/hello faisal$ ruby script/server Rails requires RubyGems \>= 1.3.2. Please install RubyGems and try again:
> 
> > k this is wat i did
> 
> But the command that's "failing" isn't gem or rails, it's `ruby` 🙂 so that implies you have a different one than you think first in your path.
> 
> What does `which ruby` return?
> 
> Also, try `ruby -S gem -v`
> 
> -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan

Hey Hassan,

I remember you had helped me fix the bug last time......k here it is

unknown0011248da679:~/hello faisal$ which ruby /usr/bin/ruby unknown0011248da679:~/hello faisal$ ruby -S gem -v /usr/local/bin/gem:8:in `require': No such file to load -- rubygems (LoadError) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/bin/gem:8 unknown0011248da679:~/hello faisal$

thanks

---

<div class="post-metadata">

**Author:** ![hassan](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/hassan/32/714_2.png) [@hassan](https://discuss.rubyonrails.org/u/hassan)\
**Post date:** [May 12, 2010, 1:41pm UTC](https://discuss.rubyonrails.org/t/issues-running-ruby-script-server/51583/6 "2010-05-12T13:41:35Z")

</div>

Bingo -- try `/usr/local/bin/ruby script/server`

If that works, just make sure your .bashrc or whatever explicitly puts /usr/local/bin before /usr/bin in your PATH.

---

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [May 12, 2010, 1:50pm UTC](https://discuss.rubyonrails.org/t/issues-running-ruby-script-server/51583/7 "2010-05-12T13:50:12Z")

</div>

Hassan Schroeder wrote:
