URN Logo
UNIX Resources » Linux » China Linux Forum » Python 编 程 » 10 » 谁安装过python 2。4 和mysql 4。1 还有mysql -python 1。2。0?有点
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
谁安装过python 2。4 和mysql 4。1 还有mysql -python 1。2。0?有点
 
 
 
Subject: 谁安装过python 2。4 和mysql 4。1 还有mysql -python 1。2。0?有点
Author: ztka    Posted: 2005-04-11 05:28    Length: 9,478 byte(s)
[Original] [Print] [Top]
现在我的机器是redhad as 3。0

安装了mysql4.1,目录是/usr/local/mysql
python 是2.4.1 目录是/usr/local/python2.4

现在安装MySql-python 1.2.0的时候 build报告错误


unning build_py
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.linux-i686-2.4/_mysql.o
_mysql.c:41:19: mysql.h: No such file or directory
_mysql.c:42:26: mysqld_error.h: No such file or directory
_mysql.c:43:20: errmsg.h: No such file or directory
_mysql.c:73: syntax error before "MYSQL"
_mysql.c:73: warning: no semicolon at end of struct or union
_mysql.c:76: syntax error before '}' token
_mysql.c:76: warning: type defaults to `int' in declaration of `_mysql_ConnectionObject'
_mysql.c:76: warning: data definition has no type or storage class
_mysql.c:87: syntax error before "MYSQL_RES"
_mysql.c:87: warning: no semicolon at end of struct or union
_mysql.c:91: syntax error before '}' token
_mysql.c:91: warning: type defaults to `int' in declaration of `_mysql_ResultObject'
_mysql.c:91: warning: data definition has no type or storage class
_mysql.c:103: syntax error before '*' token
_mysql.c:104: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_Exception':
_mysql.c:117: warning: implicit declaration of function `mysql_errno'
_mysql.c:117: `c' undeclared (first use in this function)
_mysql.c:117: (Each undeclared identifier is reported only once
_mysql.c:117: for each function it appears in.)
_mysql.c:120: `CR_MAX_ERROR' undeclared (first use in this function)
_mysql.c:128: `CR_COMMANDS_OUT_OF_SYNC' undeclared (first use in this function)
_mysql.c:129: `ER_DB_CREATE_EXISTS' undeclared (first use in this function)
_mysql.c:130: `ER_SYNTAX_ERROR' undeclared (first use in this function)
_mysql.c:131: `ER_PARSE_ERROR' undeclared (first use in this function)
_mysql.c:132: `ER_NO_SUCH_TABLE' undeclared (first use in this function)
_mysql.c:133: `ER_WRONG_DB_NAME' undeclared (first use in this function)
_mysql.c:134: `ER_WRONG_TABLE_NAME' undeclared (first use in this function)
_mysql.c:135: `ER_FIELD_SPECIFIED_TWICE' undeclared (first use in this function)
_mysql.c:136: `ER_INVALID_GROUP_FUNC_USE' undeclared (first use in this function)
_mysql.c:137: `ER_UNSUPPORTED_EXTENSION' undeclared (first use in this function)
_mysql.c:138: `ER_TABLE_MUST_HAVE_COLUMNS' undeclared (first use in this function)
_mysql.c:144: `ER_DUP_ENTRY' undeclared (first use in this function)
_mysql.c:166: warning: implicit declaration of function `mysql_error'
_mysql.c:166: warning: passing arg 1 of `PyString_FromString' makes pointer from integer without a cast
_mysql.c: In function `_mysql_server_init':
_mysql.c:185: warning: unused variable `s'
_mysql.c:186: warning: unused variable `cmd_argc'
_mysql.c:186: warning: unused variable `i'
_mysql.c:186: warning: unused variable `groupc'
_mysql.c:187: warning: unused variable `item'
_mysql.c:261: warning: label `finish' defined but not used
_mysql.c: At top level:
_mysql.c:311: syntax error before '*' token
_mysql.c:314: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_ResultObject_Initialize':
_mysql.c:316: `MYSQL_RES' undeclared (first use in this function)
_mysql.c:316: `result' undeclared (first use in this function)
_mysql.c:317: `conn' undeclared (first use in this function)
_mysql.c:321: `MYSQL_FIELD' undeclared (first use in this function)
_mysql.c:321: `fields' undeclared (first use in this function)
_mysql.c:323: `args' undeclared (first use in this function)
_mysql.c:323: `kwargs' undeclared (first use in this function)
_mysql.c:328: `self' undeclared (first use in this function)
_mysql.c:333: warning: implicit declaration of function `mysql_use_result'
_mysql.c:335: warning: implicit declaration of function `mysql_store_result'
_mysql.c:342: warning: implicit declaration of function `mysql_num_fields'
_mysql.c:345: warning: implicit declaration of function `mysql_fetch_fields'
_mysql.c: At top level:
_mysql.c:396: syntax error before '*' token
_mysql.c:399: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_ResultObject_traverse':
_mysql.c:401: `self' undeclared (first use in this function)
_mysql.c:402: warning: implicit declaration of function `visit'
_mysql.c:402: `arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:411: syntax error before '*' token
_mysql.c:412: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_ResultObject_clear':
_mysql.c:413: `self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:422: syntax error before '*' token
_mysql.c:425: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_ConnectionObject_Initialize':
_mysql.c:426: `MYSQL' undeclared (first use in this function)
_mysql.c:426: `conn' undeclared (first use in this function)
_mysql.c:435: `MYSQL_PORT' undeclared (first use in this function)
_mysql.c:451: `self' undeclared (first use in this function)
_mysql.c:454: `args' undeclared (first use in this function)
_mysql.c:454: `kwargs' undeclared (first use in this function)
_mysql.c:497: warning: implicit declaration of function `mysql_init'
_mysql.c:500: warning: implicit declaration of function `mysql_options'
_mysql.c:500: `MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)
_mysql.c:504: `MYSQL_OPT_COMPRESS' undeclared (first use in this function)
_mysql.c:505: `CLIENT_COMPRESS' undeclared (first use in this function)
_mysql.c:508: `MYSQL_OPT_NAMED_PIPE' undeclared (first use in this function)
_mysql.c:510: `MYSQL_INIT_COMMAND' undeclared (first use in this function)
_mysql.c:512: `MYSQL_READ_DEFAULT_FILE' undeclared (first use in this function)
_mysql.c:514: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
_mysql.c:517: `MYSQL_OPT_LOCAL_INFILE' undeclared (first use in this function)
_mysql.c:525: warning: implicit declaration of function `mysql_real_connect'
_mysql.c: In function `_mysql_connect':
_mysql.c:604: `c' undeclared (first use in this function)
_mysql.c:606: syntax error before ')' token
_mysql.c: At top level:
_mysql.c:617: syntax error before '*' token
_mysql.c:620: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_ConnectionObject_traverse':
_mysql.c:621: `self' undeclared (first use in this function)
_mysql.c:622: `arg' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:628: syntax error before '*' token
_mysql.c:629: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_ConnectionObject_clear':
_mysql.c:630: `self' undeclared (first use in this function)
_mysql.c: At top level:
_mysql.c:640: syntax error before '*' token
_mysql.c:642: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_ConnectionObject_close':
_mysql.c:643: `args' undeclared (first use in this function)
_mysql.c:646: `self' undeclared (first use in this function)
_mysql.c:648: warning: implicit declaration of function `mysql_close'
_mysql.c: At top level:
_mysql.c:668: syntax error before '*' token
_mysql.c:670: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_ConnectionObject_affected_rows':
_mysql.c:671: `args' undeclared (first use in this function)
_mysql.c:672: `self' undeclared (first use in this function)
_mysql.c:673: warning: implicit declaration of function `mysql_affected_rows'
_mysql.c: In function `_mysql_debug':
_mysql.c:689: warning: implicit declaration of function `mysql_debug'
_mysql.c: At top level:
_mysql.c:702: syntax error before '*' token
_mysql.c:704: warning: function declaration isn't a prototype
_mysql.c: In function `_mysql_ConnectionObject_dump_debug_info':
_mysql.c:706: `args' undeclared (first use in this function)
_mysql.c:707: `self' undeclared (first use in this function)
_mysql.c:709: warning: implicit declaration of function `mysql_dump_debug_info'
_mysql.c: At top level:
_mysql.c:721: syntax error before '*' token
_mysql.c:723: warning: function declaration isn't a prototype
等等这些错误,应该如何处理?
[Original] [Print] [Top]
Subject: Re: 谁安装过python 2。4 和mysql 4。1 还有mysql -python 1。2。0?有点
Author: passworld    Posted: 2005-04-11 12:06    Length: 66 byte(s)
[Original] [Print] [Top]
你没有安装开发包,mysql-dev mysqlclient-dev 之类的东西。
[Original] [Print] [Top]
Subject: Re: 谁安装过python 2。4 和mysql 4。1 还有mysql -python 1。2。0?有点
Author: gcd0318    Posted: 2005-05-08 17:15    Length: 75 byte(s)
[Original] [Print] [Top]
和偶当初遇到的类似,除了校对一下版本,基本上偶是把MYSQL装完全了就解决了问题
[Original] [Print] [Top]
« Previous thread
我想问一个字体变色的问题
Python 编 程
10
Next thread »
Q:关于UserDict的__Init__方法
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2008-07-17 04:11:15, cost 0.045183181762695 ms.