473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

MySQLdb installation

Hi,

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

'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
Jul 18 '05 #1
9 1477
On Mon, Nov 08, 2004 at 05:13:52PM +0100, T. Kaufmann wrote:
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-----

Jul 18 '05 #2
> ... 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

Jul 18 '05 #3
T. Kaufmann wrote:
Hi,

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

'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

Jul 18 '05 #4
T. Kaufmann wrote:
... 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.


Install the package mysql-devel.
--
Regards,

Diez B. Roggisch
Jul 18 '05 #5
wes weston wrote:
T. Kaufmann wrote:
Hi,

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

'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


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
Jul 18 '05 #6
Diez B. Roggisch wrote:
T. Kaufmann wrote:

... 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.

Install the package mysql-devel.


I can't find it!?

o-o

Thomas
Jul 18 '05 #7
T. Kaufmann <me****@snafu.de> wrote:
Diez B. Roggisch wrote:
Install the package mysql-devel.

I can't find it!?


"libraries and header files" on MySQL downloads.
--
\S -- si***@chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
___ | "Frankly I have no feelings towards penguins one way or the other"
\X/ | -- Arthur C. Clarke
her nu becomež se bera eadward ofdun hlęddre heafdes bęce bump bump bump
Jul 18 '05 #8
Sion Arrowsmith wrote:
T. Kaufmann <me****@snafu.de> wrote:
Diez B. Roggisch wrote:
Install the package mysql-devel.


I can't find it!?

"libraries and header files" on MySQL downloads.


I found it here:

http://linux.maruhn.com/sec/python-devel.html

Thanks for help.

o-o

Thomas
Jul 18 '05 #9
Sion Arrowsmith wrote:
T. Kaufmann <me****@snafu.de> wrote:
Diez B. Roggisch wrote:
Install the package mysql-devel.


I can't find it!?

"libraries and header files" on MySQL downloads.


Sorry - here is the right place:

http://linux.maruhn.com/sec/mysql-devel.html

o-o

Thomas
Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Nikolaidis | last post by:
Greetings, I am attempting to get MySQLdb 0.9.2 installed on Mac OS 10.2 with a Fink distribution of Python 2.2.2. I have seen only a few posts on the subject, some of them relate to...
0
by: Stephen Roderick | last post by:
Getting weird error, and I was wondering if anyone had any suggestions. My system appears to satisfy all MySQLdb prerequisities in terms of python, mysql, etc. Also, phpMyAdmin works fine with...
0
by: praba kar | last post by:
Dear All After installation of Mysql-Python Interface. I try to import MySQLdb but I got below error How to correct this error. regards Praba >>> import MySQLdb Traceback (most recent call...
4
by: nephish | last post by:
Hey there all, i have a question about how to point my python install to my sql database. when i enter this: db = MySQLdb.connect(user="user", passwd="pass", db="myDB") i get this:...
11
by: Fred | last post by:
I hope someone can help me with the below problem... Thanks, Fred My enviroment: -------------------------- Slackware Linux 10.2 Python 2.4.2 MySql version 4.1.14
1
by: Yi Xing | last post by:
I log into the machine remotely. How do I check the Mac OSX version number under command line? Thanks. hiaips rosedb0 at gmail.com Wed Aug 16 01:23:10 CEST 2006 * Previous message: MySQLdb...
4
by: antonyliu2002 | last post by:
I downloaded MySQL-python-1.2.1 from SourceForge and installed it on a Mandrake system (Mandrake Linux 9.2 3.3.1-2mdk on linux2). The installation was successful. The gcc version is 3.3. My...
0
by: ame2005 | last post by:
Hi The situation goes like this.I have an FC5 system with MySQl and apache installed.I am not sure if it contains a MYSQL db module .anyway, i wanted to run python scripts so i installed Mysqldb...
1
by: Gerard M | last post by:
Hi guys I have a big problem with this wrapper im using Ubuntu 7.04 and I want to install python-MySQLdb, I used synaptics and it is installed, but when I try to do and I get this error: ...
8
by: martinnorth | last post by:
Hi, I am running Python and MySQL on Ubuntu and have installed MySQLdb. If I try to import MySQLdb I get the following error: ActivePython 2.5.2.2 (ActiveState Software Inc.) based on Python...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.