安装pdo_mysql, configure通过,make 出错
时间:2010-03-18
来源:互联网
我用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
过程如下:
/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
作者: biadlo 发布时间: 2010-03-18
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.
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.
作者: todayhero 发布时间: 2010-03-18
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.
http://pecl.php.net/package/PDO_MYSQL/1.0.2
read Release notesVersion1.0.2,you see.
作者: todayhero 发布时间: 2010-03-18
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?
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?
作者: biadlo 发布时间: 2010-03-18
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.
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.
作者: todayhero 发布时间: 2010-03-18
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28