Hello everyone.
In this video, I'll be installing the compiler and the development
tool chain that we're going to use on the Mac to develop C++ programs.
Now there's a couple of things that can go on here, we can install them from scratch,
which is what I'm going to do here.
They may be already installed on your system, in which case you're
going to get a message saying that they're already installed and I'll
walk you through both those scenarios.
So what I want to do here is
I want to open up a Terminal session, so you can just press command
space bar and type in terminal, and that'll open up a terminal shell.
And I'm just going to hit command plus a few times just to make it a little
bigger, make it easier to see, all right?
So at this point, we're going to type in sudo, that's sudo followed by a
space and then xcode dash select dash space again and then dash dash Install.
So again, sudo space, xcode dash select space dash dash
install and I'll press enter.
And it's going to ask you for your password, so just type in your password.
Let me try that again, all right.
So now, if the tools have not been installed, you're going to get a pop
up like this that says, we're going to install the tools and that's exactly what
I want to do, I'm going to click install.
If the tools are already installed, then you're going to get a message
in the terminal saying that they're already installed nothing,
you don't need to do anything.
Just consider the tools installed and move on to the next video.
So, I'm going to select install.
I'm going to scroll through my license agreement and agree to it.
And I was just going to go off and install the software.
This process could take a couple of minutes, it could take a lot longer.
It really depends on your computer, as well as your Internet connection.
So, I'm going to pause the video here and I'll come back as soon as it's done.
Okay, so we're done.
The process took just over ten minutes on my machine, just so you
have an idea of how long it can take.
Again, it might take longer or it might be a lot faster,
depending on a lot of things.
So we're done.
I'm going to click done, now I'm going to close this window and I'm going to open
it again just, so we get a fresh one.
Again, I'm going to press command space, and then I'm going to type terminal and
make this thing a little bit bigger.
And now, I want to type g++ space dash dash version.
And when I press enter, I get the information about the compiler that we'll
be using, which is this guy right here.
If you went through the installation, just like I did, this should pop up.
If you started the installation and it said that the command line
tools were already installed.
When you type g++ dash dash version, you should get something very similar.
Obviously the versions are going to be different depending on when
you install this and what the latest version and so forth is.
But if we're at this point, we've got our compiler installed and we're good to go.
In the next video, we'll install CodeLite on Mac and then we'll
be good to go to start coding.
I'll see you in the next video.