wiki:InstalarPDO

Version 7 (modified by jguerra, 10 years ago) (diff)

--

  • Descargar PDO y descomprimir
    wget http://pecl.php.net/get/PDO_INFORMIX-1.2.7.tgz
    tar -xvf PDO_INFORMIX-1.2.7.tgz
    
  • Descargar e instalar
    apt-get install php5-dev
    
  • Instalar PDO
    cd PDO_INFORMIX-1.2.7/
    phpize
    ./configure
    make
    make install
    
  • Es posible que aqui te marque un error de que no encuentra el php_pdo_driver.h en determinada linea, si te lo marca, entonces

edita el archivo configure y ubica las lineas siguientes:

elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
pdo_cv_inc_path=$prefix/include/php/ext
else
as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5

cambialas por

elif test -f $prefix/include/php5/ext/pdo/php_pdo_driver.h; then
pdo_cv_inc_path=$prefix/include/php5/ext
else
as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5