I keep getting an error when I attempt to install rails. Yes, command-line tools is installed. $ sudo gem install rails Password: Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension. /Users/me/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb creating Makefile make compiling generator.c make: /usr/bin/gcc-4.2: No such file or directory make: *** [generator.o] Error 1 Gem files will remain installed in /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/gems/json-1.7.5 for inspection. Results logged to /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/gems/json-1.7.5/ext/json/ext/generator/gem_make.out -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Sun, Dec 23, 2012 at 9:31 AM, Pierre-Andre M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I keep getting an error when I attempt to install rails. Yes, > command-line tools is installed. > > $ sudo gem install rails > Password: > Building native extensions. This could take a while... > ERROR: Error installing rails: > ERROR: Failed to build gem native extension. > > /Users/me/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb > creating Makefile > > make > compiling generator.c > make: /usr/bin/gcc-4.2: No such file or directory > make: *** [generator.o] Error 1Install xcode. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Sun, Dec 23, 2012 at 9:35 AM, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sun, Dec 23, 2012 at 9:31 AM, Pierre-Andre M. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> I keep getting an error when I attempt to install rails. Yes, >> command-line tools is installed. >> >> $ sudo gem install rails >> Password: >> Building native extensions. This could take a while... >> ERROR: Error installing rails: >> ERROR: Failed to build gem native extension. >> >> /Users/me/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb >> creating Makefile >> >> make >> compiling generator.c >> make: /usr/bin/gcc-4.2: No such file or directory >> make: *** [generator.o] Error 1 > > Install xcode.I feel like I should elaborate. Install xcode and if you already have it, link llvm over. sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2. I could have the version strings wrong since I don''t work on a Mac full time, I rarely get on a Mac but that''s what I remember from earlier this year. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
I appreciate the quick response, but as I mentioned in my initial question, commandline-tools (the suite in xcode that is relevant) is installed. In addition, xcode is also installed. However I am still getting the afore mentioned error. -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Hi, I recall that recent Xcode version does not include required command line tools. Try installing osx-gcc from github. https://github.com/kennethreitz/osx-gcc-installer Cheers, Glen On Sunday, December 23, 2012 5:31:33 AM UTC-10, Ruby-Forum.com User wrote:> > I keep getting an error when I attempt to install rails. Yes, > command-line tools is installed. > > $ sudo gem install rails > Password: > Building native extensions. This could take a while... > ERROR: Error installing rails: > ERROR: Failed to build gem native extension. > > /Users/me/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb > creating Makefile > > make > compiling generator.c > make: /usr/bin/gcc-4.2: No such file or directory > make: *** [generator.o] Error 1 > > > Gem files will remain installed in > /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/gems/json-1.7.5 > for inspection. > Results logged to > /Users/me/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/gems/1.9.1/gems/json-1.7.5/ext/json/ext/generator/gem_make.out > > > -- > 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/xS704dA_uK0J. For more options, visit https://groups.google.com/groups/opt_out.
That worked great Glen! Thanks so much for your help -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On Sunday, December 23, 2012 10:42:31 AM UTC-5, Ruby-Forum.com User wrote:> > as I mentioned in my initial question, commandline-tools (the suite in > xcode that is relevant) is > installed. >In addition to installing the command line tools, you have to accept the Xcode license agreement, too. If you haven''t done this manually, then RVM fails without giving you any really useful information about the cause of the failure. Try running the following, and agreeing to the license: sudo xcodebuild -license After that, RVM should be able to compile recent rubies and native extensions properly. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/0i67KtaWrxYJ. For more options, visit https://groups.google.com/groups/opt_out.
Perfect Todd. I did miss that part. Thank you -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.