Hi guys I''m a Rails virgin. I''m pulling my hair out with the install. So far, I''ve checked that I''ve got Ruby & Gems, see below; Pauls-iMac:~ pauldoran$ ruby --version ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] Pauls-iMac:~ pauldoran$ gem --version 1.3.6 I''m trying to install Rails as follows; Pauls-iMac:~ pauldoran$ sudo gem install rails But get the following error message; 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/json-1.7.6 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/json-1.7.6/ext/json/ext/generator/gem_make.out I''ve read the forum for similar errors but non of the fixes seem to work. Any help would be so appreciated. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
This can be related you your Mac''s XCode issue. The main cause which I can remind, may be you end up having more than one XCode versions or your system is messed up. Re-installing you XCode should resolve your problem On Tuesday, 5 February 2013 13:07:23 UTC+5:30, Ruby-Forum.com User wrote:> > Hi guys > > I''m a Rails virgin. I''m pulling my hair out with the install. > > So far, I''ve checked that I''ve got Ruby & Gems, see below; > > Pauls-iMac:~ pauldoran$ ruby --version > ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] > > Pauls-iMac:~ pauldoran$ gem --version > 1.3.6 > > I''m trying to install Rails as follows; > > Pauls-iMac:~ pauldoran$ sudo gem install rails > > But get the following error message; > > 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/json-1.7.6 for inspection. > Results logged to > /Library/Ruby/Gems/1.8/gems/json-1.7.6/ext/json/ext/generator/gem_make.out > > I''ve read the forum for similar errors but non of the fixes seem to > work. > > Any help would be so appreciated. > > -- > Posted via http://www.ruby-forum.com/. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/hvz2e4HM5j8J. For more options, visit https://groups.google.com/groups/opt_out.
On 5 February 2013 07:37, Paul D. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi guys > > I''m a Rails virgin. I''m pulling my hair out with the install.I advise using rvm to install ruby and rails https://rvm.io/ Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
First, install rbenv/ruby-build or RVM https://github.com/sstephenson/rbenv/ https://github.com/sstephenson/ruby-build or https://rvm.io/ Then install ruby 1.9.3 Then install rails Good luck! Den tisdagen den 5:e februari 2013 kl. 08:37:23 UTC+1 skrev Ruby-Forum.com User:> > Hi guys > > I''m a Rails virgin. I''m pulling my hair out with the install. > > So far, I''ve checked that I''ve got Ruby & Gems, see below; > > Pauls-iMac:~ pauldoran$ ruby --version > ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] > > Pauls-iMac:~ pauldoran$ gem --version > 1.3.6 > > I''m trying to install Rails as follows; > > Pauls-iMac:~ pauldoran$ sudo gem install rails > > But get the following error message; > > 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/json-1.7.6 for inspection. > Results logged to > /Library/Ruby/Gems/1.8/gems/json-1.7.6/ext/json/ext/generator/gem_make.out > > I''ve read the forum for similar errors but non of the fixes seem to > work. > > Any help would be so appreciated. > > -- > Posted via http://www.ruby-forum.com/. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/awINWNOhdrsJ. For more options, visit https://groups.google.com/groups/opt_out.