How to install make on linux

How to Install Make on Ubuntu 22.04

Make is a command-line utility that helps Linux users to download and install packages using their source code. The make utility breaks down the large files into smaller pieces and finds out whether the components are compiled or not, and if not, then it compiles them.

This write-up explains the installation method of the make utility on Ubuntu Jammy Jellyfish.

  • How to Install Make on Ubuntu 22.04?
  • Alternative Installation Method
  • How to Use the Make on Ubuntu 22.04?
  • How to Remove the Make on Ubuntu 22.04?

How to Install Make on Ubuntu 22.04?

Most of the time, when you install Ubuntu, the make utility has already been installed on Ubuntu, so we can confirm this by displaying the installed version of the Make utility with the command:

The output shows that the make utility is not installed on the system. First, update all the packages of Ubuntu:

To install the make utility on Ubuntu, run the below-mentioned command in the terminal of Ubuntu:

When the package of make utility has been installed, a directory with the name “make” is created in “/usr/bin/” which can be displayed by using the command:

The make directory confirms the installation of the make utility on Ubuntu.

Alternative Installation Method

You can also install the make utility by installing the “build-essential” package, and the build-essential contains different packages which help build the packages on Ubuntu. To install the build-essential package, use the command:

$ sudo apt install build-essential -y

How to Use the Make on Ubuntu 22.04?

We can use the make command to install different packages using their source code, and to explain this; we will install SQLite3 on Ubuntu using the make command. For this, first, we have to download its Linux binaries:

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

After downloading the Linux binaries of the SQLite3, make a directory with the name of “SQLite3” and navigate to it:

$ mkdir SQLite3 && cd SQLite3

Now in the new directory, extract all the Linux binaries:

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

Now, navigate to the extracted folder of SQLite and start the configuration:

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

Compile the configured files and start the installation as well with the make command:

For the confirmation of the installation of SQLite3, we will run the command:

How to Remove the Make on Ubuntu 22.04?

If there is no use for the make utility, then it’s better to remove it. The make utility can be removed from Ubuntu using the “purge” option of the apt package manager:

The package has been removed with its configuration files on Ubuntu.

Conclusion

In Ubuntu, the make utility can be installed by executing the command “sudo apt install make -y”. This utility is quite helpful in compiling/linking the source code to get the specific package on Linux. Alternatively, the users can install the make package using the command “sudo apt install build-essential”. All these installation methods are explained in this post.

Читайте также:  Rust legacy server linux

Источник

How to install make on Ubuntu

The ”make” command in Linux is used to compile and manage a collection of applications and files from source code. It allows developers to use the terminal to install and collect a variety of programs. It also manages and reduces the amount of time that is required for the compilation. The make command’s primary goal is to break down a huge program into smaller pieces and assess whether or not it needs to be recompiled. It also gives the essential instructions for recompiling them.

The make command is used to execute the makefile which is a unique file that includes the shell commands we write to keep the project running. It includes executable targets and instructions and is not permitted to generate several makefiles. It’s best if you make a separate directory for it. It maintains track of recently updated files, so only update those that are needed. As a result, this article will show you how to install the make package on Ubuntu.

How to install the Make package on Ubuntu

Before installing the make package, it is better to update your already installed packages; otherwise, you may find compatibility issues with some software. You can do that by typing.

This command will provide you with the information of all outdated packages that can be upgraded to the newer version, so this is highly recommended before installing any new package. Make package comes in default in the Ubuntu OS, so you should verify if it is already installed before considering installing it. You can verify it by typing the below-mentioned command in the terminal.

Text Description automatically generated

If the make package is not installed in Ubuntu due to any reason, you will get the error as shown below.

Text Description automatically generated

You can install the make package by typing.

Text Description automatically generated

Your system should have a make directory; otherwise, you cannot use the make package. You can verify that by typing.

Text Description automatically generated

If the directory is available then you can use the “make” utility; if it displays an error as shown below then there is a way to solve this problem as well:

Text Description automatically generated

By installing the build-essential package you get rid of this error. It is also known as a meta-package, and you can use it to install a make package and several other packages as well. Many packages are dependent and linked with this package, and you can’t install them without installing the meta-package first. For its installation, you need to type the following command in the terminal.

Text Description automatically generated

After its installation, you should check the make version to verify if it is properly installed or not. You can also verify the make directory that you won’t see if it is not working correctly before. You can check the version as discussed before by typing the command.

And you can check the make directory, use:

Читайте также:  Кроссплатформенная среда разработки linux windows

Text Description automatically generated

As of now, you can see both the version and the directory, the make package is now correctly installed, and you can use it as per your requirement.

Conclusion

The make command in Linux is used to compile and manage a collection of applications and files from source code. It allows developers to use the terminal to install and collect a variety of programs. It also manages and reduces the time that is required for the compilation process for large projects. In this article, we have shown you how you can install the make package, and some of the solutions have also been discussed if you are not able to install this package

About the author

Taimoor Mohsin

Hi there! I’m an avid writer who loves to help others in finding solutions by writing high-quality content about technology and gaming. In my spare time, I enjoy reading books and watching movies.

Источник

How to install «make» in ubuntu? [closed]

I’m trying to install «yum» or «apt-get» into my system «ubuntu centOS». I did download the binary files for these two programs from the internet using the command wget. but after decompressing the files using the command «tar -zxvf «filename» ,then configuring the file «./configuring», and then when I want to use the command «make» I get the following error «make: not found». I have searched for a method to download the «make» command but all the methods I found on the net use either the command «yum» or «apt-get» and I don’t have any of them.

You have this slightly wrong. Make is not a program you need to download. it’s a utility that comes integrated into nearly every distribution of linux.

Wait, what? «ubuntu centOS»? Those are two different flavors with their own (often radically different) ways of doing things. It’s almost certainly either one or the other, unless there’s some freakish mashup of the two i haven’t seen or heard of yet. Either way, this is a question about installing software, and seems more suited to Super User.

Just for future reference, there are a couple of major flavors of Linux. I personally count 4: Debian (which includes Ubuntu), RedHat (which includes CentOS), Slackware (including SuSE), and Gentoo. (Some would argue with Gentoo being «major», but IMO it’s popular enough to earn a place, and it’s definitely its own flavor.) Most of the big distros are derived (indirectly or indirectly) from one of those main lines; the ones that aren’t are typically specialized or indie-type stuff. And the main flavors are different enough that you’ll typically only derive from one of them.

Источник

How do I install make?

I need to install make on my ubuntu on AWS EC2. How can I do that ? I could finally install build-essential also successfully.

# make make: *** No targets specified and no makefile found. Stop. 

just saw, that on my ubuntu 12.04 there is also a package make . probably sudo apt-get install make will work.

sudo apt-get install make Reading package lists. Done Building dependency tree Reading state information. Done Package make is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package ‘make’ has no installation candidate

Читайте также:  How to linux tutorials

The make package definitely should be available; I have version 3.81-8.1ubuntu1 on my system. You might have a problem with your /etc/apt/sources.list , which defines where apt-get looks for packages.

4 Answers 4

sudo apt-get install build-essential 

Chances are you will need things like gcc to actually do the building so you might as well install those as well. The build-essential package will install other tools used along with make .

@Acumenus Whether it worked in a Dockerfile or not, it doesn’t currently work in Ubuntu Focal 20.04. The Dockerfile you were using could have been using an image from any version of Ubuntu, so this statement isn’t very helpful to others.

I am running Ubuntu Focal 20.04 natively and apt-get install make works just fine. It’s also much nicer in a Dockerfile for just being lighter.

sudo apt-get -y install make

( -y = answer ‘yes’ to any prompts)

Check the installed version:

It definitely looks like make is installed on your box. The reply you are getting is actually an error generated by make, complaining that it can’t file the Makefile (which would tell it what needs to be done)

Is there any Makefile.pl in the module you are trying to install? If so, try:

As tuxpiper says, make is already installed. What reveals this is the «No targets specified and no makefile found» message, which is produced by make itself. 1

install-module.pl is an installation script that is part of Bugzilla. There isn’t enough information in the question to be entirely certain that Bugzilla is what’s being installed—perhaps there is other software that ships with a script by that name—but the exact problem described here is one that people have had while installing Bugzilla.

The problem in this situation is that, behind the scenes, install-module.pl uses cpan (a Perl package manager) which doesn’t find and use make even though it is installed.

to enter the cpan shell, and then running the CPAN commands:

o conf make '/usr/bin/make' o conf commit 

Note that the module being referred to here in the script name is a Perl module, and not any other kind of module such as a kernel module. So if you did not already have make and the other necessary development tools, installing build-essential should be sufficient to provide them, though it doesn’t substitute for configuring cpan if necessary.

This question is old and the problem may no longer be common. So I suggest that users installing Bugzilla on newer Ubuntu systems not run those cpan commands until they have actually observed the problem with make not being found even though it’s installed.

1 I’ve posted about this before, apparently. I had forgotten about that when I wrote this answer. But it turns out this answer is a bit different. For now I’ll keep this answer, which addresses the broader issues like what software this applies to, what kind of modules are being referred to, and how readers shouldn’t assume they’ll have this problem today. But I’ve made it community-wiki so other people can edit it more easily and so I don’t generate reputation from it.

Источник

Оцените статью
Adblock
detector