The installation of the source code generally consists of 3 steps: configuration (Configure), compile (make), install (makes install).
Configure is an executable script that has many options for using commands under the source path to be installed./configure–help output A detailed list of options.
Where the--prefix option is the path of the configuration installation, if this option is not configured, the executable file is placed by default in/usr/local/bin after installation, the library file is placed by default in/usr/local/lib, and the configuration file is placed by default in/usr/local/etc. Other resource files are placed in the/usr/local/share, more messy.
If you configure--prefix, such as:
./configure--prefix=/usr/local/test
All resource files can be placed in the/usr/local/test path without clutter.
Another benefit of using the-PREFIX option is uninstalling the software or porting the software. When an installed software is no longer needed, simply remove the installation directory, you can uninstall the software cleanly; the porting software simply copies the entire directory to another machine (the same operating system).
Of course, to uninstall the program, you can also use the original make directory once made uninstall, but only if the make file specified uninstall.
Configure--prefix--with
In the process of installing SPHINX3 Configure--prefix--with--prefix refers to the installation path,--with refers to the installation of this file depends on the library file.
For example, if memcached is dependent on libevent, then it is necessary to specify the Libevent library file path when configuring memcached:
./configure--prefix=/usr/local/memcached--with-libevent=/usr/local/libevent
Linux command の./configure--prefix