0

I'm running on OSX Snow Leopard. Using ruby -v I see I have 1.8.7 and using rails -v I have 2.3.5

When I try gem update rails I get the following error:

bundler requires RubyGems version >= 1.3.6

5
  • possible duplicate of Need help to upgrade my rails version
    – Blender
    May 14, 2011 at 5:53
  • 1
    He's upgrading an application, I just need to update the version of rails installed. Also he's on a Windows machine, and I'm on a mac. In addition that thread is a year old and has items specific to that version which are now out dated.
    – Jhorra
    May 14, 2011 at 5:56
  • See my answer (below)
    – Blender
    May 14, 2011 at 6:01
  • 1
    A question: why was this question migrated from stackoverflow to superuser? It's clearly about software development (and the related things that go with it, such as how to configure X dev environment).
    – Zabba
    May 14, 2011 at 7:00
  • @Zabba: probably they confused SuperUser and ServerFault; this is not software development questions either.
    – Lie Ryan
    May 14, 2011 at 11:17

4 Answers 4

1

I suggest using rvm instead of trying to mess with ruby that comes default with Mac os

2

The error message you're receiving is because the new version of Rails requires a newer version of gem than you have. You can update gem like this:

gem update --system

You may need sudo if you're using system gem. You can check the version of gem by running:

gem -v

Once this is done, and you can confirm your gem version is at least 1.3.6, you should be able to run:

gem update rails
0

From my comment, you can upgrade rails by this command (I hope):

sudo gem install rails
3
  • When I try install rails or update rails I get the following error: bundler requires RubyGems version >= 1.3.6
    – Jhorra
    May 14, 2011 at 6:07
  • Run dis: sudo gem update -V
    – Blender
    May 14, 2011 at 6:08
  • I ran that and it seemed to work, but I still get the above error
    – Jhorra
    May 14, 2011 at 6:11
0

I don't know if you have Brew or Macport:

If you have Brew installled then you use the following command to install:

sudo gem install rails

or

brew gem install rails

Please go through this link:

http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .