Unable to locate package pcre-devel

When configuring nginx, if an error is reported, PCRE needs to be installed, and then the command yum -y install pcre-devel is executed, and there is no proc. . After that, because yum cannot be used in ubuntu, it is replaced by apt-get install pcre-devel, , and the following error is reported again
insert image description here

Finally found that there is no pcre-devel package in ubuntu. .
The following command should be used:

sudo apt-get install libpcre3-dev

You're done, the installation was successful!
insert image description here

Guess you like

Origin blog.csdn.net/changyana/article/details/123453329