[Zope] RE: [newbie] MySQLDA Installation error at MySQLdb build.

Eric L. Walstad ewalstad@energywright.com
Thu, 9 Mar 2000 12:09:03 -0800


Hi Andy,

In my MySQLdb directory, the Setup.in file contains the following:

_mysql
_mysqlmodule.c -L/usr/local/lib/mysql -I/usr/local/include/mysql -lmysqlclie
nt

Note that this does NOT point to the location of the Python.h file, as you
suggested it should (below)

I've just finished recompiling and installing Python, Python-devel, MySQL,
MySQL-devel; after each step, I tried to run the build.py script and each
time I get the following error:

 Traceback (innermost last):
    File "build.py", line 14, in ?
      import MySQLdb
    File "MySQLdb.py", line 19, in ?
      from _mysql inport *
  ImportError: ./_mysqlmodule.so: undefined symbol: Py_InitModule3

I even tried installing just MySQLDA and that failed, too.

<EXTREME FRUSTRATION>All I want is to be able to connect to a MySQL DB from
Zope.</EXTREME FRUSTRATION>

Any assistance is greatly appreciated!

Eric.

// -----Original Message-----
// From: Andy Dustman [mailto:adustman@comstar.net]
// Sent: Thursday, March 09, 2000 10:15 AM
// To: Eric L. Walstad
// Subject: RE: [Zope] RE: [newbie] MySQLDA Installation error at MySQLdb
// build.
//
//
// On Thu, 9 Mar 2000, Eric L. Walstad wrote:
//
// > Hi Andy,
// > Thanks for the reply.
// > I ran:
// > 'find /usr/include -name Python.h -print'
// > and found Python.h in the /usr/include/python1.5 directory.
// >
// > So, is the build.py script not finding this file?  Do I need
// to change the
// > Setup or Setup.in file(s) to point to the directory that contains the
// > Python.h file?
// >
// > FYI, I installed PYTHON-1.5.2-2.I386.RPM and
// python-devel-1.5-2.i386.rpm
// > when I installed Python.
// >
// > Thanks for any more direction you can provide!
//
// Setup.in should already point there. Note that if you modify Setup.in and
// Setup already exists, you need to remove Setup; or you could just modify
// Setup if it exists.
//
// --
// andy dustman       |     programmer/analyst     |      comstar.net, inc.
// telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d
// "Therefore, sweet knights, if you may doubt your strength or courage,
// come no further, for death awaits you all, with nasty, big,
// pointy teeth!"
//