473,831 Members | 2,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.platfo rm()

'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 1496
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)

iD8DBQFBj54vdIO 4ozGCH14RAmsrAK CZODWuPVhG5Ales l/RghBL8NLFbQCfed m1
22qUH+vpxkdxJGP uXVGgnxU=
=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.platfo rm()

'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.platfo rm()

'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.d e> 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.gr eenend.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.d e> 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.d e> 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
2589
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 "conflicting header files," but I don't know what to do about conflicting header files, or where I would find them, and once I found them, which ones to remove. I have compiled MySQL 4.1 and installed into /usr/local/mysql, but since have moved to a Fink...
0
1493
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 mysql, leading me to believe that my installation of MySQLdb is at fault. Any ideas? TIA For file test1.py (for appropriate values of user and passwd, and database location exists)
0
1110
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 last):
4
2443
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: Traceback (most recent call last): File "<pyshell#1>", line 1, in -toplevel-
11
25639
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
3385
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 installation error * Next message: What would be the best way to run python client in the background
4
2104
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 Python version is 2.4.2. When I import MySQLdb, I get an error which says that __pure_virtual is an undefined symbol. Look:
0
1167
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 python 1.2.1_p2 module.apparently, it doesn contain sets.py but when i checked the installation in the python site packages directory, sets.py was there causing immutable set import error.Then i installed MySQLdb 1.2.2 which has some changes in the...
1
2390
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: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "MySQLdb/__init__.py", line 19, in <module> import _mysql ImportError: No module named _mysql
8
3464
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 2.5.2 (r252:60911, Mar 27 2008, 16:42:08) on linux2 Type "help", "copyright", "credits" or "license" for more information. Traceback (most recent call last):
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10777
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10494
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10534
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9317
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5785
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3964
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3076
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.