2005年12月27日 星期二 14:57
晓峻蒋,您好! 试试这个。 原来在linuxforum上发过如何解决这个问题的文章,想给你个链接,但是这几天linuxforum在升级,所以直接给你文件得了。 Good luck zyq 在 2005-12-22 18:05:00 您写道: >我的系统是redhat AS > >删除了系统自己带的python2.3.4,安装了ActivePython,安装目录为 >/opt/ActivePython-2.4 > >mysql是两进制安装包: >mysql-4.0.20,安装目录为 >/usr/local/mysql > >尝试安装MySQL-python-1.2.0: >按照文档: >$ tar xfz MySQL-python-1.2.0.tar.gz >$ cd MySQL-python-1.2.0 >$ export mysqlversion="4.0.20" >$ export mysqlclient="mysqlclient_r" >$ export mysqloptlibs="ssl crypto" >$ python setup.py build >$ su # or use sudo ># python setup.py install > >build过程出现错误: >----------------------------------------- >running build_ext >building '_mysql' extension >creating build/temp.linux-i686-2.4 >gcc -pthread -fno-strict-aliasing -fPIC -DNDEBUG -g -O3 -Wall >-Wstrict-prototypes -fPIC -I/usr/include/mysql >-I/usr/local/include/mysql -I/usr/local/mysql/include/mysql >-I/opt/ActivePython-2.4/include/python2.4 -c _mysql.c -o >build/temp.linux-i686-2.4/_mysql.o >_mysql.c:41:19: mysql.h: 没有那个文件或目录 >_mysql.c:42:26: mysqld_error.h: 没有那个文件或目录 >_mysql.c:43:20: errmsg.h: 没有那个文件或目录 >.................. >------------------------------------------------ > >实在是搞不定了,网上搜索的文档都不可行.请求帮助,谢谢! >-- >Protoss Jiang >mailto: jsonic1106 at gmail.com >_______________________________________________ >python-chinese >Post: send python-chinese at lists.python.cn >Subscribe: send subscribe to python-chinese-request at lists.python.cn >Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn >Detail Info: http://python.cn/mailman/listinfo/python-chinese 致 礼! cry zyqmail at tom.com -------------- next part -------------- A non-text attachment was scrubbed... Name: setup.py Type: application/octet-stream Size: 4677 bytes Desc: not available Url : http://lists.exoweb.net/pipermail/python-chinese/attachments/20051227/4a483964/setup.obj
Zeuux © 2025
京ICP备05028076号