MySQLdb build on Solaris 7
Asim Beg
asim_beg at hotmail.com
Wed Feb 20 00:28:30 EST 2002
Jeff,
Here's an excerpt from setup.py
elif sys.platform == "sunos5": # Solaris 2.8 + gcc
include_dirs = ['/usr/local/mysql/include']
library_dirs = ['/usr/local/mysql/lib']
libraries = [mysqlclient, "z"]
runtime_library_dirs = ['/usr/local/lib:/usr/openwin/lib:/usr/dt/lib']
extra_compile_args = ["-fPIC"]
and MySQL is installed at /usr/local/mysql. I can send the whole file if
needed.
Asim
>From: Jeff Bauer <jbauer at rubic.com>
>To: python-list at python.org
>CC: asim_beg at hotmail.com
>Subject: Re: MySQLdb build on Solaris 7
>Date: Tue, 19 Feb 2002 22:15:40 -0600
>
>Asim writes:
> > My ISP has Python 2.1 installed and I can run Python
> > CGI programs fine. I now need to connect to MySQL. I
> > need to install MySQLdb and am having difficulty
> > getting the MySQLdb source to build. I have tried
> > both MySQL-python-0.9.0 and MySQL-python-0.9.1.
> >
> > The machine is a solaris 7 with Python 2.1 on it. When
> > I try to build it starts building and then goes into
> > an infinite loop with strange libmysqlclient.a error
> > messages..
>
>
>Asim,
>
>I have Andy Dustman's MySQL-python-0.9.1 interface
>running with Python 2.1 on Solaris.
>
>You probably need to edit setup.py to reflect the
>locations of the libraries and include files, especially
>if you have MySQL in non-standard directories.
>
>Look for the line of code that begins with ...
>
> elif sys.platform == "sunos5": # Solaris 2.8
>
>... and edit the directories to reflect your
>local configuration.
>
> > Also since I cannot install MySQLdb in the standard
> > places on Solaris, how should I go about after the
> > build step.
>
>After installation, I've got the following installed:
>
> /usr/local/lib/python2.1/site-packages/
>
> CompatMysqldb.py _mysql.so
> CompatMysqldb.pyc _mysql_exceptions.py
> MySQLdb/ _mysql_exceptions.pyc
>
>... and ...
>
> /usr/local/lib/python2.1/site-packages/MySQLdb/
>
> __init__.py constants/ cursors.pyc times.pyc
> __init__.pyc converters.py sets.py
> connections.py converters.pyc sets.pyc
> connections.pyc cursors.py times.py
>
>If you have a similar file/path structure somewhere in your
>importable PYTHONPATH, you should be okay.
>
>Jeff Bauer
>Rubicon Research
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
More information about the Python-list
mailing list