error: Setup script exited with error: command ‘gcc’ failed with exit status 1
Pythonの環境セットアップ中、MySQL-pythonインストール時にエラーが発生。
Writing /tmp/easy_install-ZkF3mY/MySQL-python-1.2.5/setup.cfg
Running MySQL-python-1.2.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZkF3mY/MySQL-p ython-1.2.5/egg-dist-tmp-tMn2Zq
_mysql.c:44:23: fatal error: my_config.h: No such file or directory
#include "my_config.h"
^
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
gccは入っているだが・・と思ったが、
mysql-develのインストールを忘れていた・・orz
mysql-devel後。
zip_safe flag not set; analyzing archive contents...
Moving MySQL_python-1.2.5-py2.7-linux-x86_64.egg to /usr/local/lib/python2.7/site-packages
Adding MySQL-python 1.2.5 to easy-install.pth file
Installed /usr/local/lib/python2.7/site-packages/MySQL_python-1.2.5-py2.7-linux-x86_64.egg
Processing dependencies for MySQL-python
Finished processing dependencies for MySQL-python
売り上げランキング: 2,723