Ruby on Rails Sunday, December 23, 2012

On Sun, Dec 23, 2012 at 9:35 AM, Jordon Bedwell <envygeeks@gmail.com> wrote:
> On Sun, Dec 23, 2012 at 9:31 AM, Pierre-Andre M. <lists@ruby-forum.com> 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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment