programing

pcre 지원으로 uwsgi 다시 빌드

nasanasas 2020. 11. 13. 08:21
반응형

pcre 지원으로 uwsgi 다시 빌드


uwsgi를 실행할 때 다음 메시지가 표시됩니다.

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

다음 명령을 사용하여 이미 pcre를 설치했습니다.

Sudo apt-get install libpcre3 libpcre3-dev

내 질문은 다음과 같습니다. pcre 패키지를 설치 한 후에도이 메시지가 계속 표시되고 uwsgi를 다시 설치하고 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인지 확인하십시오.


pip install uwsgi -I --no-cache-dir

-I@leech가 말했듯이 ( )를 다시 설치 하지만 컴파일 된 캐시 ( --no-cache-dir)를 무시 하고 새 라이브러리로 다시 컴파일합니다.


pip uninstall uwsgi

sudo apt-get install libpcre3 libpcre3-dev

pip install uwsgi

위의 명령으로 해결했습니다.


시도해 보았 니:

pip install uwsgi -I 

-I플래그는 다시 설치를 강제


위의 모든 것을 시도했지만 여전히 동일한 오류가 있고 아래의 오류가있는 경우 명령 매개 변수, 특히 --http-socket /path/to/your.sock을 확인하십시오. 즉 경로 = '/ path / to'가 있어야합니다.

thunder lock: disabled (you can enable it with --thunder-lock)
bind(): No such file or directory [core/socket.c line 230]

@alanjds 답변을 완료하면 다음은 이미 설치된 uWSGI에 pcre 지원을 추가하는 프로세스입니다.

sudo apt-get install libpcre3 libpcre3-dev
pip install uwsgi -I --no-cache-dir

uWSGI를 제거 할 필요가 없습니다.

참고 URL : https://stackoverflow.com/questions/21669354/rebuild-uwsgi-with-pcre-support

반응형