In linux, I have always felt mysterious about program compilation and installation. I don't know why to execute the following./configure and add related configurations. Then make and make install a program even after installation. Today, I searched for related information on the Internet and got a rough idea about it.
Generally, the downloaded source code package is xxx.tar.gz?xxx.tar. in bz format, the downloaded software package needs to be decompressed and a corresponding directory xxx will be generated. Then, most of the source code packages have a script, configure, so we only need to execute it. /configure script, you can configure the installation information. This process is like when installing a program in windows, we need to select some paths and whether to create a desktop shortcut, whether or not to add some additional functions, so that the installation of the software package is installed in the way you want, and then the make command is based on the configuration file you just compiled the source code to generate executable programs, make install to install the compiled program.
I don't know if my understanding above is correct? In addition, after I run the./configure script, why does the make Command know that I want to compile files in the current directory? Is the make command the directory displayed by default using the pwd command? Where is the compiled program stored by the make command? (I really just got started with linux and want to know the answer. Thank you)
To uninstall the installed program, run the make uninstall command (the information on the Internet is not clear. to execute this command, you need to go to the specific directory or choose any one, if it is a specific directory, is it the directory of the program we compiled ?). In addition, you can directly delete all files in the installation directory. What are the advantages and disadvantages of this method compared with make uninstall?
This article is personal understanding. If you have any improper information, please refer
From the column andy572633