在Mac下,使用nginx+uwsgi部署django,感觉要成功了,就遇到这个‘!!! no internal routing support, rebuild with pcre support !!!’,上Stack Overflow上搜到答案了,但是那是Ubuntu上的,如下:
我在终端输入apt-get时,提示没有该指令,原谅我对Mac不熟。。
这个问题弄好久了,就是不知道怎么破,求助各位了。
迷茫2017-04-17 14:28:17
I solved it, the reason is that gcc cannot be found. I uninstalled the uwsgi installed by brew and used pip install uwsgi to find out. When installing, it prompted 'Exception: you need a C compiler to build uWSGI'. Find it on Stack Overflow. Check it out, there is a precedent, use 'sudo CC=gcc pip install uwsgi', and then the problem is solved.