Chinaunix

标题: 安装pdo_mysql, configure通过,make 出错 [打印本页]

作者: biadlo    时间: 2010-03-18 07:22
标题: 安装pdo_mysql, configure通过,make 出错
我用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
作者: todayhero    时间: 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.
作者: todayhero    时间: 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.
作者: biadlo    时间: 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?
作者: todayhero    时间: 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.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2