On Jun 24, 2012, at 12:38 PM, Roberto De Ioris wrote: > * Smarter OSX universal binary management > > on some OSX setup, building uWSGI can be a real mess thanks to universal > binary management. This patch should reduce the problem a bit (at least
Hi Roberto- I ran into trouble building on OSX last month, I posted a fix / explanation on pylons-discuss here: http://groups.google.com/group/pylons-discuss/msg/b93b702bb42b4fc2 I'll repost below (and clean up), it might be useful for you or the docs: trouble compiling uwsgi on osx ======================== uwsgi wouldn't install for me. i kept getting issues regarding the architecture that pcre (a dependent) was built on. installing a new pcre didn't work. i run osx 10.6 on an intel core duo chipset. i eventually figured out : uwsgi constantly thinks the mac is x86_64 pcre constantly thinks the mac is i386 because pcre and uwsgi were identifying to specific architectures, they were incompatible if this happens to you, to get around this you can compile a version of PCRE that is for uwsgi specifically: all this does is to configure pcre to build for i386 and 86_64... ./configure CC="gcc -arch i386 -arch x86_64" \ CXX="g++ -arch i386 -arch x86_64" \ CPP="gcc -E" CXXCPP="g++ -E" \ --prefix=/path/to/your/virtualenv make make install file /path/to/your/virtualenv/lib/libpcre.dylib when you `file` the libpcre.dylib , you should see it built for multiple architectures , one of which should match what uwsgi wants. _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
