Reputation: 8791
I'm trying to use scrapy, but it requires twisted. I already tried many solutions suggested in other posts, but nothing worked. I have python 2.7 and gcc4.2.1 on a Mac Maverick.
> /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:10:
> fatal error: 'stdio.h' file not found
>
> #include <stdio.h>
>
> ^
>
> 1 error generated.
>
> error: command '/usr/bin/clang' failed with exit status 1
edited Oct, 25th, 2013 -----------------------------
Right, I installed the Mac Developer Tools, but now I get this message:
> Requirement already satisfied (use --upgrade to upgrade): setuptools in
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
> (from zope.interface>=3.6.0->twisted)
> Installing collected packages: twisted, zope.interface
> Running setup.py install for twisted
>
> /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3
> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c conftest.c -o conftest.o
What should I input now?
Upvotes: 0
Views: 722
Reputation: 4762
Looks like you need to install the Apple command line tools from the Apple Developer Site, which will give you clang and other development headers needed for scrapy.
Upvotes: 1