C Compiler For Mac Os Sierra
Check compatibility
You can upgrade to macOS Sierra from OS X Lion or later on any of the following Mac models. Your Mac also needs at least 2GB of memory and 8.8GB of available storage space.
MacBook introduced in late 2009 or later
MacBook Air introduced in late 2010 or later
MacBook Pro introduced in mid 2010 or later
Mac mini introduced in mid 2010 or later
iMac introduced in late 2009 or later
Mac Pro introduced in mid 2010 or later
MacOS Sierra is version 10.12 of Apple Computer's Mac OS X operating system for Macintosh desktop, laptop and server computers, and it serves as the successor to Mac OS X El Capitan. Apple tweaked the naming scheme of its flagship OS with the macOS Sierra release, dropping the Mac OS X moniker for the shorter and simpler 'macOS,' which also fits better with the company's full lineup of.
To find your Mac model, memory, storage space, and macOS version, choose About This Mac from the Apple menu . If your Mac isn't compatible with macOS Sierra, the installer will let you know.
Make a backup
Before installing any upgrade, it’s a good idea to back up your Mac. Time Machine makes it simple, and other backup methods are also available. Learn how to back up your Mac.
Get connected
It takes time to download and install macOS, so make sure that you have a reliable Internet connection. If you're using a Mac notebook computer, plug it into AC power.
Download macOS Sierra
For the strongest security and latest features, find out whether you can upgrade to macOS Catalina, the latest version of the Mac operating system.
If you still need macOS Sierra, use this link: Download macOS Sierra. A file named InstallOS.dmg will download to your Mac.
Install the macOS installer
Double-click the downloaded file to open a window showing its contents. Then double-click the file within, named InstallOS.pkg.
Best C++ Compiler For Mac
Follow the onscreen instructions, which will guide you through the steps necessary to install.
Begin installation
After installation of the installer is complete, open the Applications folder on your Mac, then double-click the file named Install macOS Sierra.
Click Continue and follow the onscreen instructions. You might find it easiest to begin installation in the evening so that it can complete overnight, if needed.
Allow installation to complete
Please allow installation to complete without putting your Mac to sleep or closing its lid. Your Mac might restart, show a progress bar, or show a blank screen several times as it installs both macOS and related updates to your Mac firmware.
Learn more
Free C Compiler For Mac
- If you have hardware or software that isn't compatible with macOS Sierra, you might be able to install the previous version, OS X El Capitan.
- macOS Sierra won't install on top of a later version of macOS, but you can erase your disk first or install on another disk.
- You can use macOS Recovery to reinstall macOS.
Out of the box, OS X Lion doesn’t have the command line C compilers. Plus, Apple has once again changed the way you install those compilers in /usr/bin. Here’s how to do it with the latest Xcode and Lion.
Back in August, right after OS X 10.7, Lion, shipped, I wrote about how a new installation does not have the C compilers in the expected place, /usr/bin. This article, “OS X Lion for UNIX Geeks: Installing the C Compilers,” provided all the background.
Recently, professor Ulf von Barth of Lund University in Sweden alerted me to the fact that the mechanism has changed yet again. In the article linked above, I explained that all you had to do was download and install Apple’s Xcode IDE, and everything would be as expected. Now, you have to do a little more. But before I proceed, you should go back and read that article for reference on the C compilers, gcc, llvm, and all that jazz.
Motivation
There may be good reasons not to have a C compiler sitting around an average user’s Mac, ready to stir up trouble if accessed by malware. Thats why it’s not in the Mac by default. On the other hand, you may be taking a C class and want to use a C compiler (gcc now points to llvm) from the command line. Or you may be an administrator, and you want the C compiler to be available in a lab setting. Or you’re a researcher, and you don’t use Xcode for scientific computing. Or it may just be for show. Some day, an IT admin will come up to you and question you about the Mac, and you proudly announce that it’s based on (BSD) UNIX. This Linux guru will open the command line, type “cd /usr/bin; ./gcc -v” and then snort. “Aha. Nothing there. It’s not real UNIX! ” Not good.
Uh-oh. Not there.
Mac Install C++ Compiler
For whatever reason you may have, here’s what you need to do nowadays. Note that, unlike before, when everything was free, you will need to be a registered Mac developer.
Procedure
1. Download Xcode, now at version 4.3.2, just as before, from the Mac App Store. Finder -> Apple -> App Store… It’s always been free and still is.
Jan 28, 2020 By default, screenshots save to your desktop with the name ”Screen Shot date at time.png.” In macOS Mojave or later, you can change the default location of saved screenshots from the Options menu in the Screenshot app. You can also drag the thumbnail to a folder or document. May 13, 2010 Let’s see, PC = alt+print screen, click on photo app, right click paste, and the screen shot can be edited. Mac = command+shift+3, click on photo app, try to find the image file on my desktop with all of the other files, move the photo app out of the way, drag and drop, and the screen shot can be edited. Os x app for print screen.
2. Launch the Xcode.app that was downloaded to /Applications.
3. If you stop there, you’ll find that, unlike before, the command line compilers are not installed by default. You can go hunting for them, and you’ll it all in:
Oops. gcc/llvm now buried /Applications for use by Xcode
Phew! That won’t do you any good unless you intend to use Xcode exclusively. Very likely, all your conventional Make scripts won’t know where to find the C compilers (and linker and assembler) now, and you wouldn’t want to modify them anyway. So setting up links to the new location would be messy and likely will not work, creating new headaches. What you need is everything back in /usr/bin like before.
4. After launching Xcode, go to Preferences and select the Downloads pane, then Components. There, in the list of candidate items will be the Command line tools. Click “Install.”
Xcode’s downloads
5. You’ll be prompted for your developer credentials…
…then you’ll see the classic progress bar. When that’s done, the C compilers will all be in /usr/bin, as desired. To prove that all’s well, open a terminal window, cd to /usr bin, and take a look. Voila.
All is well again in /usr/bin
It’s a shame we have to go through all that these days, but I can see how Apple feels that the majority of users don’t need these tools, and those who do will find out how to get them. I suppose you could call that a subordinate claws.
_________
My thanks to Dr. Ulf von Barth of Lund University in Sweden and Dr. Gaurav Khanna, Physics Dept., the University of Massachussetts for their assistance with this article.