Je dois installer pdo_mysql.
J'utilise la commande pecl install pdo_mysql
dans le défilement de l'installation, j'ai une première erreur au moment du make
Code : Tout sélectionner
In file included from /tmp/pear/temp/PDO/pdo.c:32:
/tmp/pear/temp/PDO/php_pdo_driver.h:605: error: syntax error before "zend_fcall_info"
/tmp/pear/temp/PDO/php_pdo_driver.h:605: warning: no semicolon at end of struct or union
/tmp/pear/temp/PDO/php_pdo_driver.h:605: warning: no semicolon at end of struct or union
/tmp/pear/temp/PDO/php_pdo_driver.h:606: warning: no semicolon at end of struct or union
/tmp/pear/temp/PDO/php_pdo_driver.h:607: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/php_pdo_driver.h:612: error: syntax error before "zend_fcall_info"
/tmp/pear/temp/PDO/php_pdo_driver.h:612: warning: no semicolon at end of struct or union
/tmp/pear/temp/PDO/php_pdo_driver.h:613: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/php_pdo_driver.h:615: error: syntax error before '}' token
/tmp/pear/temp/PDO/php_pdo_driver.h:615: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/php_pdo_driver.h:617: error: syntax error before '}' token
/tmp/pear/temp/PDO/php_pdo_driver.h:617: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/php_pdo_driver.h:622: error: syntax error before '}' token
In file included from /tmp/pear/temp/PDO/pdo.c:33:
/tmp/pear/temp/PDO/php_pdo_int.h:34: error: syntax error before "pdo_dbh_new"
/tmp/pear/temp/PDO/php_pdo_int.h:34: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/php_pdo_int.h:39: error: syntax error before "pdo_dbstmt_new"
/tmp/pear/temp/PDO/php_pdo_int.h:39: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/php_pdo_int.h:43: error: syntax error before '*' token
/tmp/pear/temp/PDO/php_pdo_int.h:43: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/php_pdo_int.h:44: error: syntax error before "pdo_dbstmt_object_handlers"
/tmp/pear/temp/PDO/php_pdo_int.h:44: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/php_pdo_int.h:48: error: syntax error before "pdo_row_new"
/tmp/pear/temp/PDO/php_pdo_int.h:48: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/php_pdo_int.h:52: error: syntax error before "pdo_row_object_handlers"
/tmp/pear/temp/PDO/php_pdo_int.h:52: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/php_pdo_int.h:54: error: syntax error before '*' token
/tmp/pear/temp/PDO/php_pdo_int.h:54: warning: data definition has no type or storage class
/tmp/pear/temp/PDO/pdo.c:34:29: zend_exceptions.h: No such file or directory
/tmp/pear/temp/PDO/pdo.c: In function `php_pdo_get_exception_base':
/tmp/pear/temp/PDO/pdo.c:78: warning: return makes pointer from integer without a cast
/tmp/pear/temp/PDO/pdo.c: At top level:
/tmp/pear/temp/PDO/pdo.c:147: error: `OnUpdateLong' undeclared here (not in a function)
/tmp/pear/temp/PDO/pdo.c:147: error: initializer element is not constant
/tmp/pear/temp/PDO/pdo.c:147: error: (near initialization for `ini_entries[0].on_modify')
/tmp/pear/temp/PDO/pdo.c:147: error: initializer element is not constant
/tmp/pear/temp/PDO/pdo.c:147: error: (near initialization for `ini_entries[0]')
/tmp/pear/temp/PDO/pdo.c:148: error: initializer element is not constant
/tmp/pear/temp/PDO/pdo.c:148: error: (near initialization for `ini_entries[1]')
/tmp/pear/temp/PDO/pdo.c: In function `zm_startup_pdo':
/tmp/pear/temp/PDO/pdo.c:325: error: `ZEND_ACC_PUBLIC' undeclared (first use in this function)
/tmp/pear/temp/PDO/pdo.c:325: error: (Each undeclared identifier is reported only once
/tmp/pear/temp/PDO/pdo.c:325: error: for each function it appears in.)
make: *** [pdo.lo] Erreur 1
ERROR: `make' failed
Code : Tout sélectionner
In file included from /tmp/pear/temp/PDO_MYSQL/pdo_mysql.c:29:
/usr/include/php/ext/pdo/php_pdo_driver.h:605: error: syntax error before "zend_fcall_info"
/usr/include/php/ext/pdo/php_pdo_driver.h:605: warning: no semicolon at end of struct or union
/usr/include/php/ext/pdo/php_pdo_driver.h:605: warning: no semicolon at end of struct or union
/usr/include/php/ext/pdo/php_pdo_driver.h:606: warning: no semicolon at end of struct or union
/usr/include/php/ext/pdo/php_pdo_driver.h:607: warning: data definition has no type or storage class
/usr/include/php/ext/pdo/php_pdo_driver.h:612: error: syntax error before "zend_fcall_info"
/usr/include/php/ext/pdo/php_pdo_driver.h:612: warning: no semicolon at end of struct or union
/usr/include/php/ext/pdo/php_pdo_driver.h:613: warning: data definition has no type or storage class
/usr/include/php/ext/pdo/php_pdo_driver.h:615: error: syntax error before '}' token
/usr/include/php/ext/pdo/php_pdo_driver.h:615: warning: data definition has no type or storage class
/usr/include/php/ext/pdo/php_pdo_driver.h:617: error: syntax error before '}' token
/usr/include/php/ext/pdo/php_pdo_driver.h:617: warning: data definition has no type or storage class
/usr/include/php/ext/pdo/php_pdo_driver.h:622: error: syntax error before '}' token
make: *** [pdo_mysql.lo] Erreur 1
ERROR: `make' failed
Pouvez-vous m'aider ?
Merci