Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while installing uWSGI on mac

Tags:

django

uwsgi

I need uWSGI for running a django project. So when i'm trying to install uWSGI, its giving me an error saying "Exception: you need a C compiler to build uWSGI". But mac comes with gcc compiler.

I've downloaded uWSGI from "http://projects.unbit.it/uwsgi/wiki/WikiStart#Getit" and tried to install by the command "python setup.py install"

This is the error i got while installing uWSGI

running install using profile: buildconf/default.ini detected include path: ['/usr/local/include', '/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple darwin11/4.2.1/include', '/usr/include', '/System/Library/Frameworks', '/Library/Frameworks'] Traceback (most recent call last):   File "setup.py", line 98, in <module>     distclass=uWSGIDistribution,   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup     dist.run_commands()   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands     self.run_command(cmd)   File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command     cmd_obj.run()   File "setup.py", line 61, in run     conf = uc.uConf(get_profile())   File "/Users/jay/Downloads/Softwares/Work/uwsgi-1.2.4/uwsgiconfig.py", line 340, in __init__     raise Exception("you need a C compiler to build uWSGI") Exception: you need a C compiler to build uWSGI 
like image 701
Jay Avatar asked Jul 26 '12 12:07

Jay


People also ask

Where does pip install Uwsgi?

The uwsgi binary is placed in /usr/bin/uwsgi when installing uwsgi this way.

How do I compile and install windows in Uwsgi?

warn(msg) running install C:\Users\Suhail\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings. warn( using profile: buildconf/default.

Does Uwsgi work on Windows?

uWSGI doesn't work on bare Windows. (It might work on Cygwin, but that's probably not something you want to pursue.)


1 Answers

gcc already installed, just export CC=gcc will be ok.

like image 107
sing1ee Avatar answered Sep 21 '22 18:09

sing1ee