Solved

Can't update rails - requires RubyGems version >= 1.3.6

Posted on 2011-09-02
11
3,563 Views
Last Modified: 2012-05-12
I am trying to update rails.

I'm running: $ sudo gem update rails -y

but get the following response:


iMac:blog jason$ sudo gem update rails -y
Password:
Updating installed gems
Updating rails
ERROR:  Error installing rails:
      multi_json requires RubyGems version >= 1.3.6
Nothing to update


How do I update RubyGems to 1.3.6?  

Thanks in advance!

Jason
0
Comment
Question by:Jay1607
  • 5
  • 4
11 Comments
 

Author Comment

by:Jay1607
ID: 36473461
OK.. Updated RubyGems to latest version, but now when I run: $ sudo gem update rails -y .. I get ..

ERROR:  Error installing rails:
      ERROR: Failed to build gem native extension.

See full output attached

iMac:blog jason$ sudo gem update rails -y
Updating installed gems
Updating rails
Fetching: activesupport-3.1.0.gem (100%)
Fetching: builder-3.0.0.gem (100%)
Fetching: i18n-0.6.0.gem (100%)
Fetching: bcrypt-ruby-3.0.0.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing rails:
	ERROR: Failed to build gem native extension.

        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/bcrypt-ruby-3.0.0 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/bcrypt-ruby-3.0.0/ext/mri/gem_make.out
Gems updated: multi_json, activesupport, builder, i18n
Installing ri documentation for multi_json-1.0.3...
Installing ri documentation for activesupport-3.1.0...
Installing ri documentation for builder-3.0.0...
Installing ri documentation for i18n-0.6.0...
Installing RDoc documentation for multi_json-1.0.3...
Installing RDoc documentation for activesupport-3.1.0...
Installing RDoc documentation for builder-3.0.0...
Installing RDoc documentation for i18n-0.6.0...

Open in new window

0
 
LVL 12

Expert Comment

by:JESii
ID: 36474863
Try
  sudo gem update --ssytem
this should get you the latest version of rubygems and then you can try updating rails again.
0
 
LVL 12

Expert Comment

by:JESii
ID: 36474871
Sorry... misspelling; should be
  sudo gem update --system
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

by:Jay1607
ID: 36477639
Thanks JESii.. yes I ran that and have the latest version of rubyGems, but when I try to update rails with  $ sudo gem update rails -y, I get the output above (in my second post above), and rails has not updated.. as per output above I am getting

ERROR:  Error installing rails:
      ERROR: Failed to build gem native extension.
0
 
LVL 12

Accepted Solution

by:
JESii earned 500 total points
ID: 36485293
Here's the key message:
   mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Do you have the latest Mac DevCode installed? That's on your Mac OSx CD
0
 

Author Comment

by:Jay1607
ID: 36486158
Thanks JESii.. how do I tell which version Mac Devcode I have installed?  Can I get that from the web anywhere? (A google search didn't return anything useful).

Thanks
0
 
LVL 12

Expert Comment

by:JESii
ID: 36486507
That I don't know; but I'm pretty sure that you can just insert your Mac OSx DVD, pick the DevCode option, and just install it again (I can't remember... it might have some other name than "DevCode" - maybe DevTools? - but it'll be plain to see cause it's the only "Dev" option on the install disk).
0
 

Author Comment

by:Jay1607
ID: 36488034
I have 2 CDs that came with the mac.

One is the install, and the other is Applications.. there is nothing on either of them called DevCode, or Mac Dev or anything like that.  Only thing related to dev is xcode..  is xcode what you mean?
0
 
LVL 12

Expert Comment

by:JESii
ID: 36488797
My apologies; yes, that's the one.
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 36929385
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Choosing a Server-Side Scripting Language - Criterion 4 6 439
returning text 2 196
Vaidate a date in Rails 2 119
Unable to Fetch JSON Values In Chef Recipe 1 96
In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question