Error:command ' gcc ' failed with exit status 1 appears when installing mysql-python-1.2.3 on Linux Centos 4.3,
The reason is because the Mysql-devel package is not installed
yum install mysql-devel
successfully resolved using.
Just remember to report an error when running the Python setup.py build because there is no setuptools installed.
It's good to have a setuptools-0.6c11 installed first. The steps are as follows:
Required Packages: setuptools-0.6c11.tar.gz
Mysql-python-1.2.3.tar.gz
1. Installing SETUPTOOLS-0.6C11
wget--no-check-certificate http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
Tar zxf setuptools-0.6c11.tar.gz && CD SETUPTOOLS-0.6C11
Python setup.py Build
Python setup.py Install
2. Installing mysql-python-1.2.3
wget http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/MySQL-python-1.2.3.tar.gz/download
Tar zxf mysql-python-1.2.3.tar.gz && CD mysql-python-1.2.3
Python setup.py Build
Python setup.py Install
Centos4.3 install mysql-python-1.2.3, Error:command ' gcc ' failed with exit status 1