Categories: Ubuntu

How to Install and Use Make on Ubuntu 22.04

There are different methods to install packages on Ubuntu, like using the packages from the default repository, using the Debian packages, and downloading the packages from the Snapcraft store. Similar to these methods, one is by installing the application from its source code by compiling it with some utility.

For compiling the source code, there should be some Ubuntu command utility which is “make,” and in this blog, the installation method of the Make command with its usage has been explained.

How to Install and Use Make on Ubuntu 22.04?

The Make utility is pre-installed on the Ubuntu operating system, but if it is not installed, then it can be installed using the command:

Sponsored
$ sudo apt install make -y

To check the version of the installed package of make command utility, run the command:

$ make –version

The GNU Make 4.3 has been successfully installed on Ubuntu and another way to verify the installation of make command utility is by confirming the directory of “make” in the /usr/bin/ directory:

$ ls /usr/bin/make

How to use make on Ubuntu 22.04

To use the make command utility on Ubuntu, we are going to install the package of SQLite3 on Ubuntu. First, download the package of SQLite from its official website by using the wget command:

$ wget -c https://www.sqlite.org/2022/sqlite-autoconf-3390000.tar.gz

Next step is to make the directory where we will extract the contents of the downloaded package, therefore, we will create the directory with the name of SQLite3 and navigate to the directory using the command:

$ mkdir SQLite3 && cd SQLite3

Sponsored

Extract the contents of the downloaded package by using the command:

$ tar xvfz ../sqlite-autoconf-3390000.tar.gz

When the folder is extracted, then navigate to the SQLite extracted directory and configure all the files using the command:

$ cd sqlite-autoconf-3390000 && ./configure

Once the configuration is done, compile the source code and install it using the make command:

$ make && sudo make install

To confirm the installation of the SQLite3 with the make command utility, check the version of the installed package:

$ sqlite3 –version

Conclusion

With “sudo apt install make -y”, the make command utility can be installed and used to install different packages using their source code on Ubuntu 22.04. In this write-up, the installation method, as well as the usage of the Make command utility, has been explained with the help of an example.

Ubuntu Server Admin

Recent Posts

Ubuntu Weekly Newsletter Issue 891

Welcome to the Ubuntu Weekly Newsletter, Issue 891 for the week of May 4 –…

2 hours ago

See a DeepSeek demo running on ESWIN Computing’s EIC77 series at RISC-V Summit Europe 2025 in Paris

Canonical, the publisher of Ubuntu, and ESWIN Computing have partnered to enable DeepSeek LLM 7B…

11 hours ago

New 50 TOPS DC-ROMA RISC-V AI PC ships with Ubuntu Desktop 24.04 LTS pre-installed

Canonical is excited to announce the launch of DeepComputing’s new 50 TOPS DC-ROMA RISC-V AI…

3 days ago

CRA compliance: Things IoT manufacturers can no longer do under the CRA (and what to do instead)

I’ve written about the EU Cyber Resilience Act (CRA) on our Canonical blog a few…

5 days ago

IBM LinuxONE 5 and Ubuntu Server, a great combination from day one

Today, IBM announced the launch of their latest server: the new IBM LinuxONE Emperor 5.…

6 days ago