I could use some help in installing MySQLDA on Solaris 2.7. All of the software is on the same Sun server. Here is my basic configuration and the error messages:
- I am the sys-admin and thus have root access
- Running Zope 2.4.1
- Using Zope's python
- MySQL installed at /usr/local/mysql
- zmysqlda 2.0.8 installed: OK
- Trying to build mysql-python 0.9.1c2
- - setup.py edited here to:
elif os.name == "posix": # most Linux/UNIX platforms
include_dirs = ['/usr/local/mysql/include']
library_dirs = ['/usr/local/mysql/lib']
- When I run "python setup.py build" I get this result:
cinetra.computinginsights.com% python setup.py build
running build
running build_py
not copying CompatMysqldb.py (output up-to-date)
not copying _mysql_exceptions.py (output up-to-date)
not copying MySQLdb/__init__.py (output up-to-date)
not copying MySQLdb/converters.py (output up-to-date)
not copying MySQLdb/connections.py (output up-to-date)
not copying MySQLdb/cursors.py (output up-to-date)
not copying MySQLdb/sets.py (output up-to-date)
not copying MySQLdb/times.py (output up-to-date)
not copying MySQLdb/constants/__init__.py (output up-to-date)
not copying MySQLdb/constants/CR.py (output up-to-date)
not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
not copying MySQLdb/constants/ER.py (output up-to-date)
not copying MySQLdb/constants/FLAG.py (output up-to-date)
not copying MySQLdb/constants/REFRESH.py (output up-to-date)
not copying MySQLdb/constants/CLIENT.py (output up-to-date)
running build_ext
building '_mysql' extension
skipping _mysql.c (build/temp.solaris-2.7-sun4u-2.1/_mysql.o up-to-date)
gcc -shared build/temp.solaris-2.7-sun4u-2.1/_mysql.o -L/usr/local/mysql/lib -lmysqlclient -lz -o build/lib.solaris-2.7-sun4u-2.1/_mysql.so
Text relocation remains referenced
against symbol offset in file
mysql_read_query_result 0x2da8 /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
shutdown 0x20c /usr/local/mysql/lib/libmysqlclient.a(violite.o)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I could use some help in installing MySQLDA on Solaris 2.7. All of the software is on the same Sun server. Here is my basic configuration and the error messages:
- I am the sys-admin and thus have root access
- Running Zope 2.4.1
- Using Zope's python
- MySQL installed at /usr/local/mysql
- zmysqlda 2.0.8 installed: OK
- Trying to build mysql-python 0.9.1c2
- - setup.py edited here to:
elif os.name == "posix": # most Linux/UNIX platforms
include_dirs = ['/usr/local/mysql/include']
library_dirs = ['/usr/local/mysql/lib']
- When I run "python setup.py build" I get this result:
cinetra.computinginsights.com% python setup.py build
running build
running build_py
not copying CompatMysqldb.py (output up-to-date)
not copying _mysql_exceptions.py (output up-to-date)
not copying MySQLdb/__init__.py (output up-to-date)
not copying MySQLdb/converters.py (output up-to-date)
not copying MySQLdb/connections.py (output up-to-date)
not copying MySQLdb/cursors.py (output up-to-date)
not copying MySQLdb/sets.py (output up-to-date)
not copying MySQLdb/times.py (output up-to-date)
not copying MySQLdb/constants/__init__.py (output up-to-date)
not copying MySQLdb/constants/CR.py (output up-to-date)
not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
not copying MySQLdb/constants/ER.py (output up-to-date)
not copying MySQLdb/constants/FLAG.py (output up-to-date)
not copying MySQLdb/constants/REFRESH.py (output up-to-date)
not copying MySQLdb/constants/CLIENT.py (output up-to-date)
running build_ext
building '_mysql' extension
skipping _mysql.c (build/temp.solaris-2.7-sun4u-2.1/_mysql.o up-to-date)
gcc -shared build/temp.solaris-2.7-sun4u-2.1/_mysql.o -L/usr/local/mysql/lib -lmysqlclient -lz -o build/lib.solaris-2.7-sun4u-2.1/_mysql.so
Text relocation remains referenced
against symbol offset in file
mysql_read_query_result 0x2da8 /usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
shutdown 0x20c /usr/local/mysql/lib/libmysqlclient.a(violite.o)
Try this version of setup.py (with MySQLdb-0.9.1).
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/mysql-python/MySQLdb/setup.py?rev=1.17&content-type=text/x-python