Issues running ruby script/server.....

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

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

Colin

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

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$

But the command that's "failing" isn't gem or rails, it's `ruby` :slight_smile: 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 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` :slight_smile: 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)
        from /usr/local/bin/gem:8
unknown0011248da679:~/hello faisal$

thanks

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 Schroeder wrote: