2005年12月22日 星期四 18:05
我的系统是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
2005年12月23日 星期五 13:54
没有人知道吗? 在 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
2005年12月27日 星期二 13:55
应该是没有安装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
Zeuux © 2025
京ICP备05028076号