2

Mysql version 5.0.77
Python version 2.5

#easy_install MySQL-python

When I try to install, I get the following errors:

_mysql.c:2331: error: â_mysql_ConnectionObjectâ has no member named âopenâ
_mysql.c:2338: error: â_mysql_ConnectionObjectâ has no member named âconverterâ
_mysql.c:2345: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:2352: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:2359: error: â_mysql_ConnectionObjectâ has no member named âconnectionâ
_mysql.c:2422: error: â_mysql_ResultObjectâ has no member named âconverterâ
_mysql.c:2422: error: initializer element is not constant
_mysql.c:2422: error: (near initialization for â_mysql_ResultObject_memberlist[0].offsetâ)
_mysql.c:2444: error: â_mysql_ConnectionObjectâ has no member named âopenâ
error: Setup script exited with error: command 'gcc' failed with exit status 1

How can I fix this problem?

2
  • good formatting is your friend. Commented Mar 9, 2011 at 6:56
  • Linux version 2.6.18-164.el5xen ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 Commented Mar 9, 2011 at 7:41

1 Answer 1

6

yum install mysql-devel

Then,

easy_install MySQL-python

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.