MySQLdb installation

T

T. Kaufmann

Hi,

RDBMS MySQL works fine on my machine. I want to install MySQL-python
1.0.0 under Red Hat 9.0.
'Linux-2.4.20-8-i686-with-redhat-9-Shrike'

There are some problems. If I call python

setup.py build

there are lots of errors:

_mysql.c:41:19: mysql.h: File not found

What can I do? How can I fix it?

o-o

Thomas
 
G

Gerhard Haering

Hi,

RDBMS MySQL works fine on my machine. I want to install MySQL-python
1.0.0 under Red Hat 9.0. [...]
there are lots of errors:

_mysql.c:41:19: mysql.h: File not found

What can I do?

Start with reading the README :p
How can I fix it?

... which mentions, among others:

* Red Hat Linux packages:
- mysql-devel to compile
- mysql and/or mysql-devel to run

-- Gerhard
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBj54vdIO4ozGCH14RAmsrAKCZODWuPVhG5Alesl/RghBL8NLFbQCfedm1
22qUH+vpxkdxJGPuXVGgnxU=
=lEqS
-----END PGP SIGNATURE-----
 
T

T. Kaufmann

... which mentions, among others:
* Red Hat Linux packages:
- mysql-devel to compile
- mysql and/or mysql-devel to run

.... and what does it mean? I don't understand it.

o-o

Thomas
 
W

wes weston

T. Kaufmann said:
Hi,

RDBMS MySQL works fine on my machine. I want to install MySQL-python
1.0.0 under Red Hat 9.0.

'Linux-2.4.20-8-i686-with-redhat-9-Shrike'

There are some problems. If I call python

setup.py build

there are lots of errors:

_mysql.c:41:19: mysql.h: File not found

What can I do? How can I fix it?

o-o

Thomas

Thomas,
I believe the mysql.h file that is not being found
is part of the mysql developement package (and not the
MySQLDB package). If you do have mysql.h somewhere, it
is not in your include path.
wes
 
T

T. Kaufmann

wes said:
Thomas,
I believe the mysql.h file that is not being found
is part of the mysql developement package (and not the
MySQLDB package). If you do have mysql.h somewhere, it
is not in your include path.
wes

Yes, it could be the problem. I searched the header (with 'locate
mysql.h') - but there is no such file on my machine.

Thanks for help.

o-o

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,211
Messages
2,571,092
Members
47,693
Latest member
david4523

Latest Threads

Top