# Odd script/server error

**URL:** <https://www.ruby-forum.com/t/odd-script-server-error/124101>\
**Category:** Rails\
**Created:** [December 24, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/odd-script-server-error/124101 "2007-12-24T19:00:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpupkin77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@rpupkin77](https://www.ruby-forum.com/u/rpupkin77)\
**Post date:** [December 24, 2007, 7:00pm UTC](https://www.ruby-forum.com/t/odd-script-server-error/124101/1 "2007-12-24T19:00:21Z")

</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:** ![rpupkin77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@rpupkin77](https://www.ruby-forum.com/u/rpupkin77)\
**Post date:** [December 24, 2007, 8:03pm UTC](https://www.ruby-forum.com/t/odd-script-server-error/124101/2 "2007-12-24T20:03:28Z")

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

On Dec 24, 2007 9:59 AM, rpupkin77 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> directory in ~/Documents/rails/app/demo.  
> he gems command it works, furthermore, when I test the gems version I  
> Any ideas?
> 
> >

–  
[http://www.rubyplus.org/](http://www.rubyplus.org/)  
Free Ruby Screencasts

---

<div class="post-metadata">

**Author:** ![rpupkin77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@rpupkin77](https://www.ruby-forum.com/u/rpupkin77)\
**Post date:** [December 24, 2007, 9:10pm UTC](https://www.ruby-forum.com/t/odd-script-server-error/124101/3 "2007-12-24T21:10:09Z")

</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:** ![rpupkin77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@rpupkin77](https://www.ruby-forum.com/u/rpupkin77)\
**Post date:** [January 23, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/odd-script-server-error/124101/4 "2008-01-23T14:23:47Z")

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

---

<div class="post-metadata">

**Author:** ![rpupkin77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ebca7d/32.png) [@rpupkin77](https://www.ruby-forum.com/u/rpupkin77)\
**Post date:** [December 25, 2007, 2:18am UTC](https://www.ruby-forum.com/t/odd-script-server-error/124101/5 "2007-12-25T02:18:20Z")

</div>

On 24 Dec 2007, at 20:09, rpupkin77 wrote:

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