Python论坛  - 讨论区

标题:[python-chinese] 在solaris环境连接mysql5.0数据� =E2?=

2006年04月10日 星期一 14:36

c jd cjd_darren at yahoo.com.cn
Mon Apr 10 14:36:37 HKT 2006

请问在sparc solaris8的操作系统上能否用python连接Mysql5.0的数据库(mysql也安装在solaris8)?为了支持mysql5.0,我安装了mysql-python-1.2.1,但是在build过程中总是报错:
   python setup.py build
running build
running build_py
creating build
creating build/lib.solaris-2.8-sun4u-2.4
copying _mysql_exceptions.py -> build/lib.solaris-2.8-sun4u-2.4
creating build/lib.solaris-2.8-sun4u-2.4/MySQLdb
copying MySQLdb/__init__.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb
copying MySQLdb/converters.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb
copying MySQLdb/connections.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb
copying MySQLdb/cursors.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb
copying MySQLdb/release.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb
copying MySQLdb/times.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb
creating build/lib.solaris-2.8-sun4u-2.4/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.solaris-2.8-sun4u-2.4/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.solaris-2.8-sun4u-2.4
cc -DNDEBUG -O -xcode=pic32 -I/usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/include -I/usr/local/ASpy24/include/python2.4 -c _mysql.c -o build/temp.solaris-2.8-sun4u-2.4/_mysql.o -xO3 -mt -D_FORTEC_ -xarch=v9 -Dversion_info="(1,2,1,'final',1)" -D__version__="1.2.1"
cc: warning: `-x arch=v9' after last input file has no effect
cc: language code=pic32 not recognized
cc: _mysql.c: linker input file unused because linking not done
cc -G build/temp.solaris-2.8-sun4u-2.4/_mysql.o -L/usr/local/mysql-standard-5.0.19-solaris8-sparc-64bit/lib -lmysqlclient_r -lz -lpthread -lthread -lposix4 -lgen -lsocket -lnsl -lm -lpthread -lthread -o build/lib.solaris-2.8-sun4u-2.4/_mysql.so
cc: build/temp.solaris-2.8-sun4u-2.4/_mysql.o: No such file or directory
error: command 'cc' failed with exit status 1


		
---------------------------------
 雅虎1G免费邮箱百分百防垃圾信
 雅虎助手-搜索、杀毒、防骚扰  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060410/b6349a6f/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号