Tag Archives: Others

Error occurs when configuring nginx installation information. / configure: error: the HTTP rewrite module requires the PCRE library. You can

An error occurred during:

Linux terminal running nginx configuration information: (after running, it is found that the last line needs to be modified)

./configure \
--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \
--http-scgi-temp-path=/var/temp/nginx/scgi \
--add-module=/usr/local/fastdfs/fastdfs-nginx-module-1.22/src

Therefore, after modifying the last line and running again, the contents shown in the error report appear

(modify last line)

./configure \
--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \
--http-scgi-temp-path=/var/temp/nginx/scgi \
--add-module=/usr/local/software/fastdfs/fastdfs-nginx-module-1.22/src

Specific error reporting:

  Text content of error report:

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

Error content analysis:

The reason is that the PCRE package is not installed and you are not allowed to rewrite the previously configured content,

terms of settlement:

Run the following installation commands in Linux:

yum -y install pcre-devel

  After installation, run your modified configuration information again

./configure \
--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \
--http-scgi-temp-path=/var/temp/nginx/scgi \
--add-module=/usr/local/software/fastdfs/fastdfs-nginx-module-1.22/src

what you think?

ginseng https://www.cnblogs.com/tudou1179006580/p/14875457.html

ginseng https://blog.csdn.net/yuntiank/article/details/8548147?locationNum=12

ginseng https://www.huaweicloud.com/articles/13235540.html

Solution to failure of SSL configuration in synergy

After the synergy Pro is activated, the SSL certificate is automatically generated and SSL encryption is turned on. However, due to some unknown bug, the certificate automatically generated for the first time on the Mac can’t be used. This error will be reported:


[2017-01-25T09:57:03]  INFO:  OpenSSL  1.0.2  22  Jan  2015

[2017-01-25T09:57:18]  ERROR:  ssl error occurred  (system call failure)

[2017-01-25T09:57:18]  ERROR:  eof violates ssl protocol

[2017-01-25T09:57:18]  ERROR:  failed to  accept secure socket

[2017-01-25T09:57:18]  INFO:  client connection may not  be secure

It needs to be solved as follows:

    in the settings of synergy pro, uncheck use SSL to close the current synergy pro, open the terminal, enter ~ / library / synergy / SSL to delete all files in the directory, reopen synergy pro, check use SSL in the settings, the software will regenerate the certificate, stop the original client, re connect, trust the certificate in the pop-up box, the problem is solved.

If there is such a problem when the client connects:


[2017-01-25T09:59:13]  ERROR:  ssl error occurred  (generic failure)

[2017-01-25T09:59:13]  ERROR:  error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

[2017-01-25T09:59:13]  ERROR:  failed to  connect secure socket

It indicates that either client or server does not enable SSL. Please check all servers and clients. SSL must be enabled or not. There must not be only some enabled.

Module ‘XX’ has no ‘XX’ member pylint (no member)

I recently found that vscode is a tool between an IDE and an editor. It can run debugging, supports multiple languages, is relatively busy and lightweight, but I have problems in red when writing Python, PyLint (no-member)

PyLint is the Python syntax checker for VsCode. PyLint is a static checker. When using third-party libraries, some members are created only when the code is running

"python.linting.pylintArgs": ["--generate-members"]

To avoid reporting errors

Solve Python error Unicode error ‘UTF-8’

The complete error message is shown below:

Not to read the error principle, but the solution is as follows:
Open the error file (pcacode.py in this case) using Notepad ++ (which is the editor I always use), find the encoding option in the menu bar, select UTF-8, save it, and run the Python code again so it doesn’t report any errors.

Another solution, which I haven’t tried, is the following:

import codecs
codecs.open('filename',encoding='uft-8')