Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have come up against problems installing MySQL-python via yum.

Our server is running Centos 5.5 and MySQL Version 5.1.45, Python-dev is installed.

Yum complains about the missing dependency

Missing Dependency: is needed by package MySQL-python-1.2.1-1.x86_64 (base)

The server is up to date and the packages mysql mysql-devel python-devel are installed. The missing dependency is nowhere on the system:

locate libmysqlclient

/usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/mysql/libmysqlclient.a /usr/lib64/mysql/ /usr/lib64/mysql/ /usr/lib64/mysql/libmysqlclient_r.a /usr/lib64/mysql/ /usr/lib64/mysql/ /usr/local/cpanel/lib64/

rpm -qa | grep -i mysql

MySQL-devel-5.1.45-0.glibc23 MySQL-bench-5.0.89-0.glibc23 MySQL-shared-5.1.45-0.glibc23 MySQL-server-5.1.45-0.glibc23 MySQL-test-5.1.45-0.glibc23 MySQL-client-5.1.45-0.glibc23

The Python version is python-2.4.3-27.el5.x86_64:

Python 2.4.3 (#1, Sep 3 2009, 15:37:37) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2

Any suggestions would be greatly appreciated.

share|improve this question
up vote 0 down vote accepted

This version of MySQL-python requires older version of mysql than yours.

So you either need newer version of MySQL-python or older mysql.

share|improve this answer
Ok, thanks. I thought that might be an issue. Are you aware of a yum repository with a newer version or will I have to compile from source? We can't downgrade our MySQL at this time. – bs0 May 24 '10 at 11:37
No, but check and - perhaps not for CentOS, but something else like Fedora – Dmitry Yudakov May 24 '10 at 12:55
i have a same problem. My python is 2.6.4 and my mysql installed with distrbu 5.0.77 but i installed latest version of mysqldb-python1.2.3. Still i am getting same error on yum install and gcc exit with status 1 on manual installation of the same. can u please guide me? my question is… – Astha Oct 31 '11 at 12:40
please see my problem here also… – Astha Oct 31 '11 at 12:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.