Wednesday, September 13, 2017

Install uWSGI on cygwin

Hi,

When I install uWSGI on cygwin by command: python2.7 uwsgiconfig.py --build

one strange problem occur, undefined reference to `uuid_generate' on cygwin.
but uuid.h exist in /usr/include/uuid/, and I checked GCC include path by command: echo | gcc -v -x c++ -E -, it's ok.

At last, I have to update core/uitls.c

change function uwsgi_uuid to following:

void uwsgi_uuid(char *buf) {  
#ifdef UWSGI_UUID
#undef UWSGI_UUID

No comments:

Post a Comment