1 00:00:00,650 --> 00:00:08,000 ‫But one of the greatest strengths of your Linux distro is its package manager and the associated software 2 00:00:08,000 --> 00:00:08,900 ‫repository. 3 00:00:10,560 --> 00:00:16,140 ‫You're going to be able to install software from the source because you need a very specific version 4 00:00:16,350 --> 00:00:23,850 ‫not available in your distribution repository or because you just want to modify the program to fix 5 00:00:23,850 --> 00:00:26,280 ‫a bug or add a feature because you're that good. 6 00:00:27,800 --> 00:00:34,250 ‫They configure script, is responsible for getting ready to build the software on your specific system. 7 00:00:35,140 --> 00:00:41,050 ‫So it makes sure that all the dependencies for the rest of the build and install process are available. 8 00:00:41,980 --> 00:00:46,960 ‫It also finds out whatever it needs to know about how to use those dependencies. 9 00:00:49,130 --> 00:00:51,380 ‫So once Configure has done its job. 10 00:00:52,540 --> 00:00:55,900 ‫We can invoke make to build the software. 11 00:00:58,660 --> 00:01:05,920 ‫So this runs a series of tasks defined in a make file to build the finished program from its source 12 00:01:05,920 --> 00:01:06,250 ‫code. 13 00:01:08,940 --> 00:01:15,090 ‫Cool, so now that the software is built and ready to run, the files can be copied to their final destinations. 14 00:01:16,670 --> 00:01:23,390 ‫So to make install command will copy the built program and its libraries and its documentation to the 15 00:01:23,390 --> 00:01:24,530 ‫correct locations. 16 00:01:26,910 --> 00:01:29,130 ‫So you want to see how these processes work? 17 00:01:30,690 --> 00:01:35,550 ‫First will need a project to install from source code, open the browser. 18 00:01:40,500 --> 00:01:45,120 ‫Go to W WW Dot Ganiyu, New Dot O R G. 19 00:01:51,370 --> 00:01:59,710 ‫Click on Software tab, scroll down a bit, and there are some packages in this list, so let's select 20 00:01:59,710 --> 00:02:00,130 ‫one of them. 21 00:02:01,630 --> 00:02:02,860 ‫I'll click on hello. 22 00:02:04,000 --> 00:02:08,380 ‫And this is a classic program, of course, that Prince Helloworld when you run it. 23 00:02:09,070 --> 00:02:11,890 ‫Very simple, but it shows you what to do. 24 00:02:13,060 --> 00:02:20,200 ‫So to download this package via HTTPS, click on this link and we'll check the last modified dates. 25 00:02:20,470 --> 00:02:22,000 ‫Yeah, it's the latest version. 26 00:02:23,480 --> 00:02:29,930 ‫Now you can click on the tar file and download it, but I would like to show you an alternative way 27 00:02:29,930 --> 00:02:32,330 ‫to download a package or any file, for that matter. 28 00:02:32,990 --> 00:02:34,730 ‫So just copy their link location. 29 00:02:35,150 --> 00:02:36,470 ‫Open your terminal screen. 30 00:02:37,400 --> 00:02:41,780 ‫W Get is a command line utility for downloading files from the web. 31 00:02:42,830 --> 00:02:48,770 ‫Where you get you can download files using TCP, https and FTP protocols. 32 00:02:50,320 --> 00:02:51,940 ‫Paste in your download link. 33 00:02:52,840 --> 00:02:54,460 ‫And just like that, it's download. 34 00:02:55,950 --> 00:02:56,730 ‫This files. 35 00:02:57,940 --> 00:03:04,570 ‫Then first, we need to extract the zip file, so run tar dash x v f. 36 00:03:05,750 --> 00:03:07,730 ‫And the downloaded tar file. 37 00:03:16,550 --> 00:03:17,300 ‫With files. 38 00:03:18,330 --> 00:03:18,870 ‫OK. 39 00:03:19,050 --> 00:03:20,850 ‫This is the extracted folder. 40 00:03:21,240 --> 00:03:23,280 ‫So now change directory to this folder. 41 00:03:28,070 --> 00:03:28,910 ‫This files again. 42 00:03:30,850 --> 00:03:37,240 ‫So the first step is to run the configure script, just type dot slash, configure. 43 00:03:46,030 --> 00:03:51,640 ‫All right, so the next step is to compile the source code with the make command run make. 44 00:03:54,700 --> 00:04:01,090 ‫Cool, cool, so we're on the last step, so make install command will install the compiled program. 45 00:04:03,100 --> 00:04:06,520 ‫And of course, there are some permission denied errors. 46 00:04:07,150 --> 00:04:10,240 ‫So let's run, make install with sudo. 47 00:04:10,570 --> 00:04:11,950 ‫Hopefully, you already did that. 48 00:04:13,480 --> 00:04:18,010 ‫OK, so now the installation is complete, and let's check the program. 49 00:04:18,640 --> 00:04:19,660 ‫So just type, hello. 50 00:04:20,950 --> 00:04:21,880 ‫There it is. 51 00:04:22,270 --> 00:04:23,620 ‫It printed Hello, world. 52 00:04:25,050 --> 00:04:30,770 ‫This is, of course, the very first and very basic step for beginners in coding. 53 00:04:31,500 --> 00:04:33,150 ‫I know you knew that, right?