Python论坛  - 讨论区

标题:[python-chinese] ÎÒʵÔÚÊǸ㲻¶¨ MySQL-python -1.2.0 ÁË

2005年12月27日 星期二 14:57

cry zyqmail at tom.com
Tue Dec 27 14:57:06 HKT 2005

晓峻蒋,您好!

试试这个。

原来在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

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号