免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2712 | 回复: 4
打印 上一主题 下一主题

[Web] 安装pdo_mysql, configure通过,make 出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-18 07:22 |只看该作者 |倒序浏览
我用pdo_mysql-1.0.2, tar以后cd, phpize, 再./configure, 都没问题,make的时候出错。

过程如下:
/bin/bash /usr/local/PDO_MYSQL-1.0.2/libtool --mode=compile gcc -I/usr/include/php/ext -I/usr/include/mysql -DBIG_JOINS=1 -I. -I/usr/local/PDO_MYSQL-1.0.2 -DPHP_ATOM_INC -I/usr/local/PDO_MYSQL-1.0.2/include -I/usr/local/PDO_MYSQL-1.0.2/main -I/usr/local/PDO_MYSQL-1.0.2 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext  -DHAVE_CONFIG_H  -g -O2   -c /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c -o mysql_driver.lo
gcc -I/usr/include/php/ext -I/usr/include/mysql -DBIG_JOINS=1 -I. -I/usr/local/PDO_MYSQL-1.0.2 -DPHP_ATOM_INC -I/usr/local/PDO_MYSQL-1.0.2/include -I/usr/local/PDO_MYSQL-1.0.2/main -I/usr/local/PDO_MYSQL-1.0.2 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -DHAVE_CONFIG_H -g -O2 -c /usr/local/PDO_MYSQL-1.0.2/mysql_driver.c  -fPIC -DPIC -o .libs/mysql_driver.o
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c: In function 'mysql_handle_preparer':
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:232: error: 'PDO_ATTR_MAX_COLUMN_LEN' undeclared (first use in this function)
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:232: error: (Each undeclared identifier is reported only once
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:232: error: for each function it appears in.)
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c: In function 'pdo_mysql_last_insert_id':
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:265: warning: initialization makes pointer from integer without a cast
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c: In function 'pdo_mysql_set_attribute':
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:322: error: 'PDO_ATTR_EMULATE_PREPARES' undeclared (first use in this function)
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c: At top level:
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:392: warning: initialization from incompatible pointer type
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c: In function 'pdo_mysql_handle_factory':
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:469: error: 'PDO_ATTR_EMULATE_PREPARES' undeclared (first use in this function)
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:492: warning: assignment makes pointer from integer without a cast
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:502: warning: assignment makes pointer from integer without a cast
/usr/local/PDO_MYSQL-1.0.2/mysql_driver.c:512: warning: assignment makes pointer from integer without a cast
make: *** [mysql_driver.lo] Error 1

请大家分析一下。 系统是ubuntu6.10

论坛徽章:
0
2 [报告]
发表于 2010-03-18 10:03 |只看该作者
it take you several days to install php+mysql+pdo_mysql, which indicates you are a newbie in respect of linux system administration.

before installing pdo_mysql first.i strongly recommands that you should carefully read correlative instructions of pdo_mysql.so it is very easy for you to install certain programs.

the manual of pdo_mysql tell us pdo_mysql-1.0.2 correspond to php-5.1.3.but you install php 5.1.6 release.so that you can not successfully install in your server.

good luck.

论坛徽章:
0
3 [报告]
发表于 2010-03-18 10:06 |只看该作者
if you don't believe what i said please read the following linkpage.

http://pecl.php.net/package/PDO_MYSQL/1.0.2

read Release notesVersion1.0.2,you see.

论坛徽章:
0
4 [报告]
发表于 2010-03-18 11:20 |只看该作者
hi, todayhero,
Thank you for your advice. but the 1.0.2version is the newest version which I can find. I can not find any other pdo_mysql package from the internet. can anyone give me some clues?

论坛徽章:
0
5 [报告]
发表于 2010-03-18 11:39 |只看该作者
in this case.you have to use php-5.1.3 instead of php-5.1.6,remove php-5.1.6,and then install php-5.1.3.

pdo_mysql developed slowly doesn't correspond to the latest php relase.you are only reluctant to give up the latest php release.to utilize the old php release.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP