ちょっと勉強がてらnginxとuwsgiをmacにインストールして試した際に発生したエラーと解決方法をメモして行こうと思います。
nginxのインストール
brew install nginx
uwisgiのインストール
# pip install uwsgi
# ………
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/bq/○○○○/T/○○○○/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/bq/○○○○/T/pip-RebnC4-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/bq/○○○○/T/○○○○/uwsgi
Storing debug log for failure in /Users/○○○○/Library/Logs/pip.log
何かエラーが発生した。
このエラー内容で色々探してみたら
sudo apt-get install python2.7-dev
これやれば、直るらしい。
ただ、macには標準でapt-getが無いため、違う方法が無いか探してみた。
sudo C_INCLUDE_PATH=/usr/local/include LIBRARY_PATH=/usr/local/lib pip install uwsgi
こんな感じで、やるとエラーが発生せずuwsgiがインストールされた。
まだ、勉強中のためuwsgiがいまいちどんなモノかも解っていないモノのとりあえず、スタートラインに立てたもよう。