[Zope] MySQLDA woes with 2.4.1 RH6.1

Richard Moon richard@dcs.co.uk
Fri, 21 Sep 2001 19:01:23 +0100


>
> > and it got past the Python.h error - however it then errored with
> >
> > In file included from _mysql.c:31:
> > /opt/Python-2.1.1/Include/Python.h:24: config.h: No such file or directory
> > In file included from /opt/Python-2.1.1/Include/Python.h:54,
> >                   from _mysql.c:31:
> > /opt/Python-2.1.1/Include/pyport.h:4: config.h: No such file or directory
> > In file included from /opt/Python-2.1.1/Include/Python.h:54,
> >                   from _mysql.c:31:
> > /opt/Python-2.1.1/Include/pyport.h:404: #error "could not set LONG_MAX in
> > pypor"
> > error: command 'gcc' failed with exit status 1
> >
> > Any ideas ?
>
>/opt/Python-2.1.1 is your Python source directory, isn't it?...
>
>How did you install Python? Did you make install? By default, it should
>install into /usr/local, with the include files going into
>/usr/local/include/python.

Yes I did and it put the modules in /usr/local/lib/include/python2.1

so I changed setup.py to

if sys.platform == "linux2": # Red Hat
     include_dirs = 
['/usr/include/mysql','/opt/Python-2.1.1/Include','/usr/local
/include/python2.1']

And then ran
../bin/python setup.py build
(from my Mysql-python directory underneath the zope home directory - and it 
ran !!!

so I then ran

../bin/python setup.py install

and that ran

so I ran ./stop and ./start in my zope home directory

and ZMySQLDA was installed and running.

Got there in the end. Thanks for your help

Regards

Richard


Richard Moon
richard@dcs.co.uk