[Zope] Loading ZMySQLda on Solaris 7
Andy Dustman
andy@dustman.net
Wed, 31 Jan 2001 17:33:54 -0500 (EST)
On Wed, 31 Jan 2001, Lee Marzke wrote:
> Well I can't seem to get MySQLdb to load into any version
> of Python-1.5.2
>
> I've went from MySQL 3.22.32 to 3.22.30 from source
> ( that version works on Linux RH6.1 for me )
> I've recompiled Python 1.5.2 from source
> I've recompiled GCC 2.95.1 from source
> ( all with --prefix=/sw/scm/usr )
>
>
> I'm using the MySQLdb-0.1.2 that is part of MySQLDA-0.3.1
Ok, that doesn't sound right. Please try the versions listed at
http://www.zope.org/Members/adustman. If the Zope site is still down, you
can also get up-to-date versions at http://dustman.net/andy/python.
> The Python error when loading MySQLdb is:
>
> Traceback (innermost last):
> File "<stdin>", line 1, in ?
> File "/sw/scm/usr/lib/python1.5/site-packages/MySQLdb.py", line 19, in ?
> import _mysql
> ImportError: ld.so.1: python1.5: fatal: relocation error: file
> /sw/scm/usr/lib/python1.5/site-packages/_mysql.so: symbol PyTuple_New:
> referenced symbol not found
>
> Seperate question:
> I also am using the precompiled Zope sparc binary, which has a
> copy of Python 1.5.2, but I'm not of what to do with modules
> that I compile with my Python1.5.2 so that it uses them.
Make sure that the version that Zope uses is found first by your
shell. I'm guess you need to do this:
export PATH=/sw/scm/usr/bin:$PATH # bourne-like shell
setenv PATH /sw/scm/usr/bin:$PATH # csh-like shell
and then compile.
--
Andy Dustman PGP: 0xC72F3F1D
@ .net http://dustman.net/andy
"Normally with carbonara you use eggs, but I used lobster brains instead."
-- Masahiko Kobe (Iron Chef Italian): 30-year-old Giant Lobster Battle