Compile the installation program using the source code package in linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.