1 00:00:00,000 --> 00:00:02,583 (bright music) 2 00:00:05,070 --> 00:00:05,903 Frank: In this video, 3 00:00:05,903 --> 00:00:07,410 we'll go over the steps necessary 4 00:00:07,410 --> 00:00:09,360 to install the command line tools, 5 00:00:09,360 --> 00:00:11,670 which includes the C plus plus compiler 6 00:00:11,670 --> 00:00:14,160 on the Mac OS 10 platform. 7 00:00:14,160 --> 00:00:16,560 In order to do this, we need to have a terminal window 8 00:00:16,560 --> 00:00:19,410 so let's go over to Spotlight search and type in terminal 9 00:00:20,970 --> 00:00:22,800 and we'll get a terminal window running. 10 00:00:22,800 --> 00:00:27,420 At this point, we want to type X code dash select 11 00:00:27,420 --> 00:00:28,870 dash dash install 12 00:00:31,740 --> 00:00:32,583 and press enter. 13 00:00:33,930 --> 00:00:36,960 If you get a dialogue box that pops up as I do, 14 00:00:36,960 --> 00:00:38,820 that means that the command line tools 15 00:00:38,820 --> 00:00:42,360 and the compiler are not currently installed. 16 00:00:42,360 --> 00:00:43,620 If you get a message saying 17 00:00:43,620 --> 00:00:45,840 that they are currently installed, then you're done. 18 00:00:45,840 --> 00:00:47,220 You can move on to installing 19 00:00:47,220 --> 00:00:49,980 the integrated development environment. 20 00:00:49,980 --> 00:00:52,440 In this case, I have the choice of installing 21 00:00:52,440 --> 00:00:55,590 the full X code integrated development environment 22 00:00:55,590 --> 00:00:58,170 or simply install the command line tools. 23 00:00:58,170 --> 00:01:00,330 I'm only going to install the command line tools 24 00:01:00,330 --> 00:01:02,070 which again includes the compiler, 25 00:01:02,070 --> 00:01:03,423 so I'll select install. 26 00:01:05,069 --> 00:01:06,870 I'll agree to the license agreement, 27 00:01:10,320 --> 00:01:12,600 and the software will be downloaded and installed. 28 00:01:12,600 --> 00:01:14,253 It's a pretty quick process. 29 00:01:17,460 --> 00:01:19,710 After a few minutes, you'll see a message saying 30 00:01:19,710 --> 00:01:21,210 the software was installed, 31 00:01:21,210 --> 00:01:22,800 and the installation is complete. 32 00:01:22,800 --> 00:01:25,800 You can test out the installation by simply typing 33 00:01:25,800 --> 00:01:30,213 G plus plus dash dash version at the terminal, 34 00:01:31,410 --> 00:01:32,640 and you'll see the version number 35 00:01:32,640 --> 00:01:34,260 of the C plus plus compiler 36 00:01:34,260 --> 00:01:36,420 which means it's all set and good to go. 37 00:01:36,420 --> 00:01:39,180 At this point, you'll keep the command line tools up to date 38 00:01:39,180 --> 00:01:40,320 through the app store, 39 00:01:40,320 --> 00:01:41,913 so you could select app store, 40 00:01:44,190 --> 00:01:45,123 updates, 41 00:01:46,020 --> 00:01:48,240 and you can see your command line tool updates 42 00:01:48,240 --> 00:01:49,320 will appear here. 43 00:01:49,320 --> 00:01:50,513 Right now I've got no updates available 44 00:01:50,513 --> 00:01:53,370 because I just installed the latest. 45 00:01:53,370 --> 00:01:54,203 That's it. 46 00:01:54,203 --> 00:01:55,320 We've installed the command line tools, 47 00:01:55,320 --> 00:01:56,970 our compilers are all set up, 48 00:01:56,970 --> 00:01:57,990 and we're good to go. 49 00:01:57,990 --> 00:01:59,340 The next step is to install 50 00:01:59,340 --> 00:02:01,290 the integrated development environment.