The difference between make and make install

make and make install What difference does it make?

In short, make the compiler, make install is installed.

Summary: linux compilation configure, make and make install to install the respective roles

  • ./configure is used to detect the target feature your installation platform. For example, it will detect that you are not a CC or GCC, CC is not needed or GCC, it is a shell script.
  • is used to make compiled, it reads instructions from the Makefile, then compiled.
  • make install is used to install, it also reads instructions from the Makefile, mounted to the specified location.

1、configure

This step is generally used to generate the Makefile, to prepare for the next compilation, you can be controlled by adding a parameter after installation configure, such as code: ./ configure --prefix = / usr is the meaning of the above software installed in / usr below, the executable file will be installed in / usr / bin. at the same time some of the software configuration file you can set by specifying --sys-config = parameter. Some software can also add --with, - enable, - without, - disable etc. parameters to control compiler, you can view detailed instructions to help by allowing ./configure --help.

2、make

make Linux Development Kit which is a control program for automated compilation of his procedural automated call gcc, ld and run certain programs need to be compiled by a compiler written specification means the Makefile. In general, the Makefile control codes used by him, provided the script generated by the configure parameters and the given system environment.

3、make install

This command to install (of course, some software you need to run make check or make test carried out some tests), this step generally requires you to have root privileges (because want to write to the file system)

Guess you like

Origin www.linuxidc.com/Linux/2019-08/160139.htm