Use of configure configuration script and configure configuration script

Source: Internet
Author: User

Use of configure configuration script and configure configuration script

The installation of software in Linux is generally composed of three steps:

./Configure -- host = arm-linux... // configure
Make // compile make install // install

If you cancel the compilation:

Make clean // only clear the previously compiled executable files and configuration files. Make distclean // clear all generated files.

If you uninstall the software:

Make uninstall // uninstall

 

 This section describes the configure configuration script.

As shown in, some software has the configure configuration script:

 

You can use the command./configure-help to output a detailed list of options.

 

Common options are as follows:

-- Host

The default value of the compiled program is build, which is the program compiled by the local machine. It is used by the local machine. For example, when the program compiled by the local machine needs to run on the arm host, it must be set to arm-linux

For example:

 ./configure  --host=arm-linux

-- Prefix

Prefix of the installation path, which indicates the installation path generated after make install

For example:

./configure  --prefix=/work/my_bin           

CFLAGS

Specify the header file (. h file) path, usually used to install the library package, there will be two files (include and lib) in the installation directory, and when you install the application package, you need to specify (include) header file path

For example:

./configure  CFLAGS=”-I/usr/include”。        //-I: include

LDFLAGS

Specifies the path of the library file. It is generally used to install the library package. There are two files (include and lib) in the installation directory. When installing the application package, you need to specify (lib) library File Path

For example:

./configure  LDFLAGS=”-L/usr/include”。       //-L: lib

 

 

No. If you encounter other problems, update them later ~

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.