Build Tools
Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or
Already have an account? Sign In »

Video Transcription
00:00
>> Hey there Cybrarians and welcome back to
00:00
the Linux plus course here at Cybrary,
00:00
I'm your instructor Rob Goels.
00:00
In today's lesson,
00:00
we're going to be discussing Build Tools.
00:00
Now upon completion of today's lesson,
00:00
you're going to be able to understand
00:00
the build tools topics that are going to
00:00
be on the Linux plus exam.
00:00
We're going to explain the purposes of
00:00
the configure command, make command,
00:00
make install command,
00:00
and we'll talk about compilers
00:00
as we go through this lesson.
00:00
Now Linux software installation is
00:00
generally just done through a package manager,
00:00
whether it be DNF, Yammer app.
00:00
But there are times when you're going to
00:00
have to install software from source code.
00:00
It could be because the software is just not
00:00
available to the repository,
00:00
is not in a repository where
00:00
a package manager knows about it,
00:00
or maybe the developer hasn't
00:00
provided a package, or maybe,
00:00
the software is something you
00:00
want to customize and you want
00:00
to do that through working through the source code.
00:00
But those three topics
00:00
are all good reasons why you might need to
00:00
do a source install of the installation.
00:00
Now the first thing is you're
00:00
going to need to do when you're
00:00
working with source code is extract it
00:00
because generally source code comes
00:00
as a tar or tgz file,
00:00
and we covered that back earlier in this module.
00:00
To extract a file using the tar command,
00:00
you can use tar-xzvf of a tgz file.
00:00
Really what that does is it extracts
00:00
a tgz file by providing a z.
00:00
Z tells that, that's a gz compressed tar file.
00:00
Remember we talked about tgz files there,
00:00
tar files that have been gzip
00:00
compressed using the tar command.
00:00
Instead of doing a "C" to create them,
00:00
we do at "X" to extract and we
00:00
provide Z to tell it as gzip compressed,
00:00
we do a V to get
00:00
a verbose output so we can
00:00
see all of the stuff that's being extracted.
00:00
We use f to specify the file name.
00:00
Same thing for a tar file.
00:00
That's just a regular tar files not compressed.
00:00
We just take the z out and you say tar,
00:00
xzvf and the filename,
00:00
and that will extract the file.
00:00
Now most source code packages
00:00
have something called a configure script.
00:00
Really that's just a command use set-up
00:00
the installation files that we're going to
00:00
use to compile the software.
00:00
We can navigate the directory that we
00:00
extracted in the previous slide there.
00:00
We can run the configure command which
00:00
is./configure to run that command.
00:00
What it'll do is it's going to
00:00
verify that the environment that
00:00
the operating system we're running is
00:00
compatible with the software we're trying to install,
00:00
it makes sure that we have a compiler
00:00
available and it creates a Makefile.
00:00
Now that Makefile created is really important because
00:00
it's used when we do compilation and other things.
00:00
It's used to specialize the source code to
00:00
the specific distribution or system that we're running.
00:00
It's going to make sure that the application will
00:00
run on the distro and it will run on the architecture.
00:00
Generally for us it's X8664,
00:00
but it can also maybe run other architectures.
00:00
It just has to check and make sure.
00:00
Once that's done, the next step
00:00
is to use the make command and
00:00
install the make command to call the compiler.
00:00
What this does the make command calls the compiler.
00:00
It tells the C or C++ compiler to read that make file
00:00
then from that the compiler
00:00
generates a compiled executable.
00:00
Now that we have the executable we need to
00:00
install it. All right, well, how do we do that?
00:00
We use the make command again,
00:00
but now we just use make install.
00:00
What it'll do is it'll get
00:00
the information from the Makefile,
00:00
we created, and
00:00
the application gets installed in the system.
00:00
At this point, the application is ready to run.
00:00
With that, in this lesson,
00:00
we covered build tools that are going
00:00
to be on the Linux plus exam.
00:00
We talked about the installation steps
00:00
of installing source code using tar,
00:00
config, make and make install.
00:00
Thanks so much for being here and I look
00:00
forward to seeing you in our next lesson.
Up Next
Instructed By
Similar Content