Home >Operation and Maintenance >Linux Operation and Maintenance >What does compilation and installation in linux system mean?

What does compilation and installation in linux system mean?

王林
王林Original
2020-03-12 14:37:315567browse

What does compilation and installation in linux system mean?

Compilation: Convert source code into machine executable code files.

Installation: Install the executable file into the operating system before it can be used.

To run the source code, it must first be converted into binary machine code. This is the compiler's job.

(Recommended tutorial: linux tutorial)

For example, the following source code (assuming the file name is test.c).

#include <stdio.h>

int main(void)
{
  fputs("Hello, world!\n", stdout);
  return 0;
}

It needs to be processed by the compiler before it can be run.

$ gcc test.c
$ ./a.out
Hello, world!

For complex projects, the compilation process must be divided into three steps.

$ ./configure
$ make  
$ make install

Recommended related video tutorials: linux video tutorial

The above is the detailed content of What does compilation and installation in linux system mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn