# Rails requires RubyGems \>= 1.3.1 (you have 1.1.1) on OSX

**URL:** <https://www.ruby-forum.com/t/rails-requires-rubygems-1-3-1-you-have-1-1-1-on-osx/163483>\
**Category:** Rails\
**Created:** [March 20, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/rails-requires-rubygems-1-3-1-you-have-1-1-1-on-osx/163483 "2009-03-20T20:48:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreinla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@andreinla](https://www.ruby-forum.com/u/andreinla)\
**Post date:** [March 20, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/rails-requires-rubygems-1-3-1-you-have-1-1-1-on-osx/163483/1 "2009-03-20T20:48:15Z")

</div>

Hi, I just installed rails 2.3.2 and after

rails test  
cd test  
rake db:migrate  
mongrel\_rails start

I get this:

\*\* Starting Mongrel listening at 0.0.0.0:3000  
\*\* Starting Rails with development environment…  
Rails requires RubyGems \>= 1.3.1 (you have 1.1.1). Please `gem update --system` and try again.

gem -v =\> 1.3.1

Any ideas for a solution? Is it possible I have more than one  
installation of ruby on my machine, with mongrel accessing the other  
one? How do I find out and how do I resolve this?

Thank you!!!

---

<div class="post-metadata">

**Author:** ![andreinla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@andreinla](https://www.ruby-forum.com/u/andreinla)\
**Post date:** [March 20, 2009, 9:35pm UTC](https://www.ruby-forum.com/t/rails-requires-rubygems-1-3-1-you-have-1-1-1-on-osx/163483/2 "2009-03-20T21:35:13Z")

</div>

On 20 Mar 2009, at 19:48, Andre In la wrote:

> Any ideas for a solution? Is it possible I have more than one  
> installation of ruby on my machine, with mongrel accessing the other  
> one? How do I find out and how do I resolve this?

That is possible. Look at the output of  
which mongrel\_rails  
which gem  
which ruby

Fred

---

<div class="post-metadata">

**Author:** ![andreinla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@andreinla](https://www.ruby-forum.com/u/andreinla)\
**Post date:** [March 21, 2009, 12:53am UTC](https://www.ruby-forum.com/t/rails-requires-rubygems-1-3-1-you-have-1-1-1-on-osx/163483/3 "2009-03-21T00:53:09Z")

</div>

has you tried

sudo gem install rubygems-update  
sudo update\_rubygems

---

<div class="post-metadata">

**Author:** ![andreinla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@andreinla](https://www.ruby-forum.com/u/andreinla)\
**Post date:** [March 21, 2009, 3:20am UTC](https://www.ruby-forum.com/t/rails-requires-rubygems-1-3-1-you-have-1-1-1-on-osx/163483/4 "2009-03-21T03:20:43Z")

</div>

alberto wrote:

> has you tried
> 
> sudo gem install rubygems-update  
> sudo update\_rubygems

Yes, I did do that

Also,

which ruby =\> /usr/local/bin/ruby  
which gem =\> /usr/local/bin/gem  
which mongrel\_rails =\> /usr/bin/mongrel\_rails

Any ideas?

---

<div class="post-metadata">

**Author:** ![andreinla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@andreinla](https://www.ruby-forum.com/u/andreinla)\
**Post date:** [March 21, 2009, 3:36am UTC](https://www.ruby-forum.com/t/rails-requires-rubygems-1-3-1-you-have-1-1-1-on-osx/163483/5 "2009-03-21T03:36:53Z")

</div>

Andre In la wrote:

> alberto wrote:
> 
> > has you tried
> > 
> > sudo gem install rubygems-update  
> > sudo update\_rubygems
> 
> Yes, I did do that
> 
> Also,
> 
> which ruby =\> /usr/local/bin/ruby  
> which gem =\> /usr/local/bin/gem  
> which mongrel\_rails =\> /usr/bin/mongrel\_rails
> 
> Any ideas?

Resolved by  
sudo rm /usr/bin/mongrel\_rails  
sudo gem install mongrel

thank you for the suggestions!

---

<div class="post-metadata">

**Author:** ![andreinla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@andreinla](https://www.ruby-forum.com/u/andreinla)\
**Post date:** [March 21, 2009, 3:50am UTC](https://www.ruby-forum.com/t/rails-requires-rubygems-1-3-1-you-have-1-1-1-on-osx/163483/6 "2009-03-21T03:50:59Z")

</div>

On Mar 21, 2:20 am, Andre In la [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> which ruby =\> /usr/local/bin/ruby  
> which gem =\> /usr/local/bin/gem  
> which mongrel\_rails =\> /usr/bin/mongrel\_rails

What this means is that your ruby and gem commands were from the ruby  
installation in /usr/local, which you have kept up to date (hence gem -  
v returning 1.3.1) but the mongrel\_rails command was part of the ruby  
installation that came with OS X and was using the version of gem that  
was part of that ruby installation, which happened to be an earlier  
version. removing /usr/bin/mongrel\_rails was actually unecessary -  
installing mongrel will have created a /usr/local/bin/mongrel\_rails  
which would have taken precedence over the one in /usr/bin.

Fred
