MySQLdb build on Solaris 7
Asim Beg
asim_beg at hotmail.com
Tue Feb 19 21:33:46 EST 2002
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..
If you are going to help, please be specfic and don't rant about the
do's and don't of why I am doing this. I am new to Python and would
really like to use CGI+Python+MySQL on an ISP hosted account.
Also since I cannot install MySQLdb in the standard places on Solaris,
how should I go about after the build step. Where and which files
should I copy to my home dir toget Python to work with MySQLdb.
Thanks
Asim
bash-2.03$ uname -a
SunOS europa 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-80
bash-2.03$ python
Python 2.1 (#1, May 25 2001, 16:58:42)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "copyright", "credits" or "license" for more information.
bash-2.03$ cd MySQL-python-0.9.0
bash-2.03$ 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 0x2da4
/usr/local/mysql/lib/libmysqlclient.a(libmysql.o)
shutdown 0x20c
/usr/local/mysql/lib/libmysqlclient.a(violite.o)
printf 0x1244
/usr/local/mysql/lib/libmysqlclient.a(charset.o)
printf 0x428
/usr/local/mysql/lib/libmysqlclient.a(default.o)
printf 0x3fc
/usr/local/mysql/lib/libmysqlclient.a(default.o)
printf 0x1238
/usr/local/mysql/lib/libmysqlclient.a(charset.o)
printf 0x13c8
/usr/local/mysql/lib/libmysqlclient.a(charset.o)
printf 0x125c
/usr/local/mysql/lib/libmysqlclient.a(charset.o)
printf
...................
More information about the Python-list
mailing list