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

  • Home
  • SEARCH
  • 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 8232733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:55:40+00:00 2026-06-07T17:55:40+00:00

Is this possible to install pure gcc with header files on os x lion

  • 0

Is this possible to install pure gcc with header files on os x lion in a separate folder?

That way I could keep my OS clean and have all of my development tools in one place.

  • 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-07T17:55:42+00:00Added an answer on June 7, 2026 at 5:55 pm

    This is probably a very bad idea. It’s going to be hard to do, many open source packages that use autoconf will get highly confused, you won’t be able to use Homebrew/MacPorts/Fink, etc. And the end result will hardly be “vanilla”; it will be different from every other Mac development system in the world, and much harder to restore from scratch if you ever need to. Also, if you build stock gcc, rather than Apple-patched gcc, you won’t have any of the Apple extensions (e.g., the -arch flag).

    You can get around some of these problems by copying at least one of the Xcode SDKs somewhere on your system, and just setting up your environment to always use that SDK. But some of them, there’s just no way around. (For example, many configure scripts will be un-confused if you do that, but obviously that won’t fix the -arch flag.)

    So, I would strongly suggest installing Xcode, or at least installing the standalone Xcode Command Line Tools package (available from developer.apple.com), instead.

    But what you want to do is doable.

    First, there are some binary builds of gcc around, such as at these. That’s probably the easiest way to go. And, once you’ve got a compiler, if it’s not the one you want, you can always use it to compile the one you actually do want.

    Alternatively, you can just install Command Line Tools, use that to build the gcc you want, then uninstall Command Line Tools.

    Or you can install Command Line Tools on another Mac, use that to build gcc, and copy it over. (You can probably even do the build with Homebrew, and just copy over the /usr/local/Cellar/gcc and set up the symlinks.)

    If you really like pain, you can cross-compile gcc from a totally different platform.

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

Sidebar

Related Questions

Is this possible or does it require a local install?
I would like to keep everything contained within the virtualenv. Is this possible with
Is this possible to install and use Telerik Extension for ASP.NET MVC in Umbraco
Is this possible to use Ajax.Beginform with update target inside of ajax form. like
Is this possible if I click on an anchor link to simulate as if
Is this possible? My code works on Firefox. I can also get webkit to
Is this possible? function testObj(testArg) { //Do obj stuff here } testObj.prototype.addFn = function()
Is this possible? I know how to do it from your own wall but
Is this possible to do? I want to ping or send some kind of
Is this possible at all? The idea is to have the following: if ($some_statement)

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.