Python论坛  - 讨论区

标题:[python-chinese] 我实在是搞不定 MySQL-python-1.2.0 了

2005年12月22日 星期四 18:05

晓峻蒋 jsonic1106 at gmail.com
Thu Dec 22 18:05:13 HKT 2005

我的系统是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

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

2005年12月23日 星期五 13:54

晓峻蒋 jsonic1106 at gmail.com
Fri Dec 23 13:54:45 HKT 2005

没有人知道吗?

在 05-12-22,晓峻蒋<jsonic1106 at gmail.com> 写道:
> 我的系统是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
>


--
Protoss Jiang
mailto: jsonic1106 at gmail.com

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

2005年12月27日 星期二 13:55

victor pang shenglipang at gmail.com
Tue Dec 27 13:55:13 HKT 2005

应该是没有安装MySQL的*开发包*,安装试试看。

在05-12-23,晓峻蒋 <jsonic1106 at gmail.com> 写道:
>
> 没有人知道吗?
>
> 在 05-12-22,晓峻蒋<jsonic1106 at gmail.com> 写道:
> > 我的系统是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
> >
>
>
> --
> 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
>
>


--
理想,快乐,生活,勇气!
庞胜利<shenglipang at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20051227/745ddfe5/attachment-0001.html

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号