# Issues running ruby script/server

**URL:** <https://www.ruby-forum.com/t/issues-running-ruby-script-server/188469>\
**Category:** Rails\
**Created:** [May 12, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/issues-running-ruby-script-server/188469 "2010-05-12T14:48:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![binbash-x](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@binbash-x](https://www.ruby-forum.com/u/binbash-x)\
**Post date:** [May 12, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/issues-running-ruby-script-server/188469/1 "2010-05-12T14: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:** ![binbash-x](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@binbash-x](https://www.ruby-forum.com/u/binbash-x)\
**Post date:** [May 12, 2010, 2:53pm UTC](https://www.ruby-forum.com/t/issues-running-ruby-script-server/188469/2 "2010-05-12T14:53:53Z")

</div>

On 12 May 2010 13:48, Faisal B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![binbash-x](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@binbash-x](https://www.ruby-forum.com/u/binbash-x)\
**Post date:** [May 12, 2010, 3:31pm UTC](https://www.ruby-forum.com/t/issues-running-ruby-script-server/188469/3 "2010-05-12T15:31:21Z")

</div>

On Wed, May 12, 2010 at 6:12 AM, Faisal B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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 S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![binbash-x](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@binbash-x](https://www.ruby-forum.com/u/binbash-x)\
**Post date:** [May 12, 2010, 3:12pm UTC](https://www.ruby-forum.com/t/issues-running-ruby-script-server/188469/4 "2010-05-12T15:12:35Z")

</div>

Colin L. wrote:

> On 12 May 2010 13:48, Faisal B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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:** ![binbash-x](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@binbash-x](https://www.ruby-forum.com/u/binbash-x)\
**Post date:** [May 12, 2010, 3:36pm UTC](https://www.ruby-forum.com/t/issues-running-ruby-script-server/188469/5 "2010-05-12T15:36:06Z")

</div>

Hassan S. wrote:

> On Wed, May 12, 2010 at 6:12 AM, Faisal B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> 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 S. ------------------------ removed\_email\_address@domain.invalid  
> 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)  
from /usr/local/bin/gem:8  
unknown0011248da679:~/hello faisal$

thanks

---

<div class="post-metadata">

**Author:** ![binbash-x](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@binbash-x](https://www.ruby-forum.com/u/binbash-x)\
**Post date:** [May 12, 2010, 3:44pm UTC](https://www.ruby-forum.com/t/issues-running-ruby-script-server/188469/6 "2010-05-12T15:44:14Z")

</div>

On Wed, May 12, 2010 at 6:36 AM, Faisal B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 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

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.

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![binbash-x](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/ecb155/32.png) [@binbash-x](https://www.ruby-forum.com/u/binbash-x)\
**Post date:** [May 12, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/issues-running-ruby-script-server/188469/7 "2010-05-12T15:50:12Z")

</div>

Hassan S. wrote:

> On Wed, May 12, 2010 at 6:36 AM, Faisal B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > 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
> 
> 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.
> 
> –  
> Hassan S. ------------------------ removed\_email\_address@domain.invalid  
> twitter: @hassan

awesome dude…that worked!..finally the server started…thanks a  
lot Hassan, much appreciated.
