Article Title: Linuxconfigure parameter explanation. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Installing software in Linux is really not easy. There are direct rpm packages for installation. It is better to say that some directly enable source files to compile and generate executable files first, and there are a lot of compilation needs to be done, for example, configure, the following is an article found on the internet, about the Linux configure parameter explanation:
Installing software in Linux environment is not an easy task. If the software is installed after source code compilation, of course it is more complicated. Currently, various software installation tutorials are common; however, if you have a solid understanding of the basic knowledge, you can solve the problems of installing various software. The Configure script configuration tool is one of the basics. It is the basic application of the autoconf tool.
Compared with some techniques, Configure is more basic. Of course, it is boring to use and learn. Of course, to become a master, you must be familiar with the basics.
For this reason, I have reproduced a detailed introduction to the configuration of Configure options. For your reference
The 'configure 'script has a large number of command line options. for different software packages, these options may change, but many basic options will not change. run the '-- help' script to view all available options. although many options are rarely used, it is very helpful to know their existence when you configure a package for special needs. next we will give a brief introduction to each option:
-- Cache-file = FILE
'Configure 'will test the existing features (or bugs!) on your system !). To accelerate subsequent configuration, the test results are stored in a cache file. when configure has a complex source code tree with the 'configure 'script in each subtree, the existence of a good cache file will be very helpful.
-- Help
Output help information. even experienced users occasionally need to use the '-- help' option, because a complex project contains additional options. for example, the 'configure 'script in the GCC contains options that allow you to control whether to generate and use the GNU Compiler in GCC.
-- No-create
A major function in 'configure 'creates an output file. this option prevents 'configure 'from generating this file. you can think of it as a dry run, although the cache is still rewritten.
-- Quiet
-- Silent
When 'configure 'is tested, a brief message is output to tell the user what is being done. this is because 'configure 'may be slow, and users will be thrown aside to wonder what is happening without such output. using either of the two options will throw you aside. the two sentences are interesting. the original Article is like this: If there was no such output, the user wocould be left wondering what is happening. by using this option, you too can be left wondering !)
-- Version
Print the Autoconf version used to generate the 'configure 'script.
-- Prefix = PEWFIX
'-- Prefix' is the most common option. the generated 'makefile' will view the parameters passed with this option. When a package is installed, it can completely reset its structure independence. for example, to install a package, for example, Emacs, the following command will install Emacs Lisp file to "/opt/gnu/share ":
$./Configure -- prefix =/opt/gnu
-- Exec-prefix = EPREFIX
It is similar to the '-- prefix' option, but it is used to set the installation location of the file on which the structure depends. the compiled 'memacs' binary file is such a question. if this option is not set, the default option value will be set to the same as the '-- prefix' option value.
-- Bindir = DIR
Specifies the installation location of the binary file. The binary file here is defined as a program that can be directly executed by the user.
-- Sbindir = DIR
Specifies the installation location of the Super binary file. This is a program that can only be executed by the Super User.
-- Libexecdir = DIR
Specifies the installation location of executable support files. Unlike binary files, these files are never directly executed by users, but can be executed by the binary files mentioned above.
-- Datadir = DIR
Specifies the installation location of common data files.
-- Sysconfdir = DIR
Specifies the installation location of read-only data used on a single machine.
-- Sharedstatedir = DIR
Specifies the installation location of writable data that can be shared on multiple machines.
-- Localstatedir = DIR
Specifies the installation location of writable data that can only be used by a single machine.
-- Libdir = DIR
Specifies the installation location of the library file.
-- Includedir = DIR
Specifies the installation location of the C header file. This option can also be used for header files in other languages such as C ++.
-- Oldincludedir = DIR
Specifies the installation location of the C header file installed by the compiler except GCC.
-- Infodir = DIR
Specifies the installation location of the Info format document. Info is the document format used by the GNU project.
-- Mandir = DIR
Specifies the installation location of the manual page.
-- Srcdir = DIR
This option does not work for installation. It will tell the location of the 'configure 'source code. Generally, this option is not required because the 'configure' script is usually in the same directory as the source code file.
-- Program-prefix = PREFIX
Specifies the prefix that will be added to the name of the installed program. for example, if you use '-- program-prefix = G' to configure a program named 'tar', the installed program will be named 'gtar '. this option is used only when it is used with other installation options. in 'file used only.
[1] [2] Next page