2010-06-21 26 views
4

Essayer d'installer mysql-python. Vous avez une erreur de suivi. Vous avez déjà installé mysql et pythond. Toute aide sera très appréciéeInstallation de mysql-python sur Centos

[[email protected] include]# easy_install mysql-python 
Searching for mysql-python 
Reading http://cheeseshop.python.org/pypi/mysql-python/ 
Couldn't find index page for 'mysql-python' (maybe misspelled?) 
Scanning index of all packages (this may take a while) 
Reading http://cheeseshop.python.org/pypi/ 
Reading http://cheeseshop.python.org/pypi/MySQL-python/1.2.3c1 
Reading http://sourceforge.net/projects/mysql-python 
Best match: MySQL-python 1.2.3c1 
Downloading http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3c1.tar.gz#md5=310dd856e439d070b59ece6dd7a0734d 
Processing MySQL-python-1.2.3c1.tar.gz 
Running MySQL-python-1.2.3c1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-toQ0nx/MySQL-python-1.2.3c1/egg-dist-tmp-OeN5eG 
unable to execute gcc: No such file or directory 
error: Setup script exited with error: command 'gcc' failed with exit status 1 

Répondre

7

vous devez installer gcc (sur CentOS, une variété d'outils de dev-)

10

Cela installera GCC et d'autres souvent nécessaire:

yum groupinstall 'Development Tools' 

Can également être installé individuel c.-à-d. yum install gcc