[reprint]. The role of the/configure,make,make install

Source: Internet
Author: User

1, configure, this step is generally used to generate Makefile, to prepare for the next compilation, you can add parameters to the Configure after the installation control, such as code:./CONFIGURE–PREFIX=/USR means to install the software on/ Below usr, the execution file is installed in/usr/bin (instead of the default/usr/local/bin), and the resource file is installed in/usr/share (not the default/usr/local/share). At the same time, some software configuration files can be set by specifying the –sys-config= parameter. Some software can also add –with, –enable, –without, –disable, and so on to control the compilation, you can see the detailed instructions by allowing./configure–help to help.

2, make, this step is compiled, most of the source code packages are compiled this step (of course, some perl or Python writing software needs to call Perl or Python to compile). If error occurs during the make process, you need to write down the error code (note that it is not just the last line), and then you can submit a bugreport to the developer (usually with a submit address in the INSTALL), or your system will have fewer dependent libraries, which requires careful study of the error code.

3, make insatll, this command to install (of course some software needs to run make check or do test to do some testing), this step generally requires you to have root permissions (because you want to write to the system file).

-----
Linux users may know that when installing an application under Linux, it is common to run the script configure, then use make to compile the source program, run make install, and then run make clean to delete some temporary files. Using the three automated tools above, you can generate configure scripts. Run the Configure script, you can generate the makefile file, and you will be able to run make, makes install, and do clean.

Configure is a shell script that automatically sets up the source program to match the characteristics of UNIX systems on various platforms, and produces the appropriate makefile file or C header file based on the number of systems and environment. Make it easy for the source program to be compiled and connected on these different platforms.

This article is from the "not You can not" blog, please be sure to keep this source http://feinibuke.blog.51cto.com/1724260/367376

[reprint]. The role of the/configure,make,make install

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.