What does compilation and installation in linux system mean?

王林
Release: 2020-03-12 14:37:31
Original
5427 people have browsed it

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  int main(void) { fputs("Hello, world!\n", stdout); return 0; }
Copy after login

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

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

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

$ ./configure $ make $ make install
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!