The role of the/configure,make,make install in Linux.

Source: Internet
Author: User

For installing software in Linux, use the./configure,make,make Install Explanation:

For example:

shell>tar zxvf libevent-1.4.14b-stable.tar.gz

shell>cd libevent-1.4.14b-stable

shell>./configure

shell>make && make install


(1) The ./configure is the target feature of the test installation platform. For example, it detects if you have CC or GCC, it is a shell script that generates Makefile, prepares for the next compilation, and you can control the installation by adding parameters after configure, such as code:./configure– Prefix=/usr/local means to install the software under/usr/local.


(2) make is used to compile, it reads instructions from makefile, then compiles, and Most of the source code packages are compiled in this step.


(3) make install is used for installation, it also reads instructions from makefile, installs to the specified location, 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).


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



This article is from the Apple blog, so be sure to keep this source http://59465168.blog.51cto.com/5268021/1836610

The role of the/configure,make,make install in Linux.

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.