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).
#includeint 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!