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 ~