Role of Configure/make install (markzz)

Source: Internet
Author: User

These are typically generated using GNU Autoconf and automake.ProgramInstallation Steps.

./ConfigureIt is used to detect the target features of your installation platform. For example, it will check whether you have cc or GCC. It does not need cc or GCC. It is a shell script.

MakeIs used for compilation. It reads commands from makefile and then compiles the commands.

Make installIs used for installation. It also reads commands from makefile and installs them to the specified location.

Automake and AutoconfIt is very useful for publishing C Programs. If you want to use automake and Autoconf, you can refer to the relatedArticle.

-- End --

1. Configure This step is generally used to generate makefile to prepare for the next compilation. You can add parameters after configure to control the installation, such

Code :./Configure -- prefix =/usr
The above means to install the software under/usr, And the execution file will be installed in/usr/bin (instead of the default/usr/local/bin ), the resource file will be installed in/usr/share (instead of the default/usr/local/share ). You can specify the -- sys-Config = parameter to set some software configuration files. Some software can also be added with -- with, -- enable, -- without, -- disable and other parameters to control the compilation. You can view detailed instructions for help by allowing./configure -- help.

2. Make , This step is to compile, most ofSource codeThe packages are compiled in this step (of course, some software written in Perl or Python must call Perl or Python for compilation ). If an 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 the bugreport to the developer (generally there is a submission address in install ), or your system has less dependent libraries, and you need to carefully study the error code.

3. Make insatll , This command to install (of course, some software must first run make check or make test for some tests ), this step usually requires you to have the root permission (because you need to write files to the system ).

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.