Updating gcc mac
The source for GCC in the 4.1 area may be too old for use with 10.8. Build status for GCC 4.7 links to results for x86_64-apple-darwin10.8.0 …
installer for the Command Line Tools (CLT), but they don't normally expose the link. You can install it without downloading/installing XCode. You can download the installer(file) lattest version of GCC for Mountain Lion from this site. https://github.com/kennethreitz/osx-gcc-installer/downloads Thank you for your interest in this question.
If needed your shell configuration files will be adapted by the installer to include the necessary settings to run Mac Ports and the programs it installs, but you may need to open a new shell for these changes to take effect.
The Mac Ports “” command will also be run for you by the installer to ensure you have our latest available release and the latest revisions to the “Portfiles” that contain the instructions employed in the building and installation of ports.
Open a terminal app and type the following commands: And, there you have it, the gcc version 4.2.1 installed and working correctly on the latest version of Mac OS X 10.8.4.
Apple Open Source for the most recently published Developer Tools 4.3 is without GCC.
Alternatively, if you'd simply like to view the git repository without checking it out, you can do so via the Git Hub web interface.
If you already have Mac Ports installed and have no restrictions to use the rsync networking protocol (tcp port 873 by default), the easiest way to upgrade to our latest available release, 2.5.4, is by using the operation) and rebuild your current installation if it's outdated, preserving your customizations, if any.
The easiest way to install Mac Ports on a Mac is by downloading the pkg or dmg for Mojave, High Sierra, Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion, Lion, Snow Leopard, Leopard or Tiger and running the system's Installer by double-clicking on the pkg contained therein, following the on-screen instructions until completion.
This procedure will place a fully-functional and default Mac Ports installation on your host system, ready for usage.
In that 'OSX GCC Installer' area, the first of two options is pre-built binaries — for Snow Leopard and for Lion, but not for Mountain Lion.