Home  >  Article  >  Operation and Maintenance  >  What to do if Linux cannot execute configure

What to do if Linux cannot execute configure

WBOY
WBOYOriginal
2022-06-08 17:50:163609browse

Linux cannot execute configure because it lacks dependent libraries, which can be solved by reinstalling new libraries. Solution: 1. Use the "yum install -y PCRE" statement to install the pcre library. pcre is a lightweight perl function library; 2. Use the "yum install -y pcre-devel" statement to install the "pcre-devel" library. Can.

What to do if Linux cannot execute configure

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What to do if Linux cannot execute configure

In Linux, the most likely reason for invalid commands is the lack of dependent libraries, so if a command is invalid, you can try to reinstall a new library

I encountered an error when using configure, prompting that the pcre library was missing. After installing the pcre and pcre-devel libraries, the compilation was normal.

1. Install the pcre library

What to do if Linux cannot execute configure

##2. Install the pcre-devel library

What to do if Linux cannot execute configure

Extended knowledge:

PCRE (Perl Compatible Regular Expressions) is a lightweight Perl function library, including perl Compatible regular expression library. It is much smaller than regular expression libraries like Boost. PCRE is very easy to use and very powerful. Its performance exceeds the POSIX regular expression library and some classic regular expression libraries.

The 'configure' script has a large number of command line options. These options may change for different packages, but many basic options will not change. Bring '--help' Options Execute the 'configure' script to see all the options available. Although many options are rarely used, it is beneficial to know that they exist when you configure a package for special needs. The following are A brief introduction to each option:

--cache-file=FILE

'configure' will test the existing features (or bugs!) on your system. To speed up subsequent operations Configuration, test results will be stored in a cache file. When each sub-tree of configure has a complex source tree of 'configure' scripts, the existence of a good cache file will be of great help.

--help

Output help information. Even experienced users occasionally need to use the '--help' option, because a complex project may contain additional options. For example, GCC The 'configure' script in the package contains options that allow you to control whether to generate and use the GNU assembler in GCC.

--no-create

A major one in 'configure' The function will produce an output file. This option prevents 'configure' from generating this file. You can think of this as a dry run, although the cache is still overwritten.

Recommended learning:

Linux video tutorial

The above is the detailed content of What to do if Linux cannot execute configure. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn