gpt4 book ai didi

pcre - 使用 PCRE 支持重建 uwsgi

转载 作者:行者123 更新时间:2023-12-02 02:52:33 35 4
gpt4 key购买 nike

运行 uwsgi 时,我收到以下消息:

!!! no internal routing support, rebuild with pcre support !!!

我已经使用以下命令安装了 pcre(我认为):

sudo apt-get install libpcre3 libpcre3-dev

如果我需要重新安装 uwsgi 并激活 pcre,为什么即使在安装了 pcre 软件包后我仍然收到此消息,我该怎么做?

此外,内部路由重要吗?

我认为确实如此,否则 uwsgi 的制作者就不会显示该消息。我正在运行 Ubuntu 12.04 LTS

最佳答案

pip install uwsgi -I

不会重新编译 uwsgi 二进制文件,它只是重新安装 python Egg。您需要使用 PCRE 库重建 uwsgi 二进制文件。

sudo apt-get install libpcre3 libpcre3-dev

我认为最简单的方法就是卸载 uwsgi,然后再次运行 pip 安装程序。

pip uninstall uwsgi
sudo apt-get remove uwsgi

然后

pip install uwsgi

您应该看到 pip 运行 setup.py 脚本和一堆编译器消息。最后一条消息应该显示如下内容:

################# uWSGI configuration #################

pcre = True
kernel = Linux
malloc = libc
execinfo = False
ifaddrs = True
ssl = True
zlib = True
locking = pthread_mutex
plugin_dir = .
timer = timerfd
yaml = embedded
json = False
filemonitor = inotify
routing = True
debug = False
capabilities = False
xml = libxml2
event = epoll

############## end of uWSGI configuration #############

注意现在 pcre = true

关于pcre - 使用 PCRE 支持重建 uwsgi,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21669354/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com