Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9296177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:46:36+00:00 2026-06-18T21:46:36+00:00

OS: Mac OS X 10.8.2 XCode: Latest with command line tools installed (version 4.6)

  • 0

OS: Mac OS X 10.8.2
XCode: Latest with command line tools installed (version 4.6)
Rails: version 3.2.3

I was trying to generate the routes for a project I am working on (been doing that on regular basis), when I got an error message, with a recommendation that I do bundle install and bundle exec. I did, and this time around, the process broke off while compiling the JSON Gem (version 1.7.7).

Doing some research on StackOverflow, the recommendation was to update the XCode’s command line tools, and I did, but that did not solve the problem.

I tried installing the JSON version 1.7.7 separately, and it failed, telling me to look for the error log in:

~/.rvm/gems/ruby-1.9.3-p125/gems/json-1.7.7/ext/json/ext/generator/gem_make.out

Which reads:

/Users/mine/.rvm/rubies/ruby-1.9.3-p125/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

I looked for /usr/bin/gcc-4.2, and indeed, it’s not there. But, when I do:

ls -l /usr/bin/gcc

Here’s what I get:

lrwxr-xr-x  1 root  wheel  12 Feb 14 15:49 /usr/bin/gcc -> llvm-gcc-4.2

How do I fix this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T21:46:38+00:00Added an answer on June 18, 2026 at 9:46 pm

    I think the problem is that when you install the Xcode command line tools, gcc is sym-linked to llvm, and llvm can’t always compile Ruby and gems correctly.

    If you install autoconf, automake, and gcc directly (or through something like Homebrew), you should be able to fix the compiler errors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've updated XCode to 4.5 (with iOS 6) and installed latest command line tools.
I'm using mac os lion with the latest xcode version. I installed phonegap from
I have installed from XCode -> Preferences -> Downloads the Command Line Tools .
Assume I'm developing a typical Mac or iOS application using Apple's latest Xcode tools.
I have installed Google Toolbox for Mac into Xcode and followed the instructions to
i am developing a phonegap project in mac os with xcode. in xcode if
In Xcode 3.2.1 on Mac OS X Snow Leopard, I open a project under:
I am trying to install the latest SVN Update OpenSceneGraph-3.1.4 on Mac OS X
I have been trying to run an example of IOS project. But it seems,
I am trying to add the Parsekit framework to my OSX Xcode project. I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.