# Odd script/server error

**URL:** <https://discuss.rubyonrails.org/t/odd-script-server-error/22207>\
**Category:** rubyonrails-talk\
**Created:** [December 24, 2007, 5:59pm UTC](https://discuss.rubyonrails.org/t/odd-script-server-error/22207 "2007-12-24T17:59:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpupkin77](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rpupkin77](https://discuss.rubyonrails.org/u/rpupkin77)\
**Post date:** [December 24, 2007, 5:59pm UTC](https://discuss.rubyonrails.org/t/odd-script-server-error/22207/1 "2007-12-24T17:59:43Z")

</div>

hi,

I am fairly new to rails, I started learning it about 6 months ago, but stopped when a big project came up. That was on a Windows machine. Since then, I have purchased a mac power book. I am ready to again. I installed rails following the much used HiveLogic tute and everything seemed to work.

In any event I created a small test app: controller, view, etc in a directory in ~/Documents/rails/app/demo.

When I created the app, I made a simple controller and view and started teh server (script/server) and everything worked fine. I restarted my computer and went to start the server (I am in the 'demo') directory I get this error:

Rails requires RubyGems \>= 0.9.4. Please install RubyGems and try again: [http://rubygems.rubyforge.org](http://rubygems.rubyforge.org)

This doesn't seem to make sense because when I update something using he gems command it works, furthermore, when I test the gems version I get this:

$ gem --version1.0.1

I am running Rails 2.02

and Ruby: 1.8.2 (2004-12-25) [universal-darwin8.0]

on OS X 10.4

Any ideas?

---

<div class="post-metadata">

**Author:** ![Bala\_Paranj](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@Bala\_Paranj](https://discuss.rubyonrails.org/u/Bala_Paranj)\
**Post date:** [December 24, 2007, 7:02pm UTC](https://discuss.rubyonrails.org/t/odd-script-server-error/22207/2 "2007-12-24T19:02:34Z")

</div>

To get the gem version do:

gem env

1. sudo gem update --system. This will upgrade the Ruby gems to 1.0.1

2. sudo gem install rails --source [http://gems.rubyonrails.org](http://gems.rubyonrails.org) Note that gem install -y is the default, so you don’t have to provide it.

---

<div class="post-metadata">

**Author:** ![rpupkin77](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rpupkin77](https://discuss.rubyonrails.org/u/rpupkin77)\
**Post date:** [December 24, 2007, 8:09pm UTC](https://discuss.rubyonrails.org/t/odd-script-server-error/22207/3 "2007-12-24T20:09:29Z")

</div>

Thanks for the reply, but that is not the issue, I already have the most recent version of both gems and rails, I feel as though the error is wrong, and that the issue it is giving is not correct. that is to say, I have done something wrong, but not having gems installed is not the issue.

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [December 25, 2007, 1:17am UTC](https://discuss.rubyonrails.org/t/odd-script-server-error/22207/4 "2007-12-25T01:17:29Z")

</div>

> Thanks for the reply, but that is not the issue, I already have the most recent version of both gems and rails, I feel as though the error is wrong, and that the issue it is giving is not correct. that is to say, I have done something wrong, but not having gems installed is not the issue.
> 
> > > This doesn't seem to make sense because when I update something  
> > > using he gems command it works, furthermore, when I test the gems  
> > > version I get this:
> > 
> > > $ gem --version1.0.1
> > 
> > > I am running Rails 2.02
> > 
> > > and Ruby: 1.8.2 (2004-12-25) [universal-darwin8.0]
> > 
> > > on OS X 10.4

That's the antique version of ruby that Tiger shipped with isn't it?  
If you followed the hivelogic tutorial you;ll have a new version  
installed, is your $PATH currently set properly so that the new  
version of ruby (which will have a separate set of gems etc..) is  
invoked ?

Fred

---

<div class="post-metadata">

**Author:** ![Tobias\_Numiranta](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@Tobias\_Numiranta](https://discuss.rubyonrails.org/u/Tobias_Numiranta)\
**Post date:** [January 23, 2008, 1:12pm UTC](https://discuss.rubyonrails.org/t/odd-script-server-error/22207/5 "2008-01-23T13:12:01Z")

</div>

Hi,

I get the same error on my ubuntu linux installation when I create a new rails-project.

tn@spike:$ ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux] tn@spike:$ gem -v 1.0.1 tn@spike:$ ruby script/console Rails requires RubyGems \>= 0.9.4 (you have 0.9.0). Please `gem update --system` and try again.

It works fine for old projects though? The gem version control seems a bit buggy. Any ideas what to do? I've tried to reinstall rubygems, but it don't help.

Best regards, Tobias
