Dudas CentOS. PDO_PGSQL y yum history no funcionan ambos

Buenos días a todos.

Debido a un problema en Drupal, veo que es necesario instalar PDO_PGSQL para utilizar la BBDD con PostgreSQL. El PostgreSQL está instalado y funcionando correctamente.

Googleando he visto que se debe escribir esto:

pecl install pdo_pgsql


Y me sale lo siguiente:

WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
WARNING: "pecl/PDO" is deprecated in favor of "channel://http://svn.php.net/viewvc/php/php-src/trunk/ext/pdo//ext/PDO"
downloading PDO_PGSQL-1.0.2.tgz ...
Starting to download PDO_PGSQL-1.0.2.tgz (14,961 bytes)
.....done: 14,961 bytes
downloading PDO-1.0.3.tgz ...
Starting to download PDO-1.0.3.tgz (52,613 bytes)
...done: 52,613 bytes
12 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
building in /tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3
running: /tmp/pear/install/PDO/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable PDO support... yes, shared
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 static flag -static works... yes
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3/libtool --mode=compile cc -I. -I/tmp/pear/install/PDO -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3/include -I/tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3/main -I/tmp/pear/install/PDO -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/PDO/pdo.c -o pdo.lo
mkdir .libs
cc -I. -I/tmp/pear/install/PDO -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3/include -I/tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3/main -I/tmp/pear/install/PDO -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/PDO/pdo.c -fPIC -DPIC -o .libs/pdo.o
/bin/sh /tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3/libtool --mode=compile cc -I. -I/tmp/pear/install/PDO -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3/include -I/tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3/main -I/tmp/pear/install/PDO -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/PDO/pdo_dbh.c -o pdo_dbh.lo
cc -I. -I/tmp/pear/install/PDO -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3/include -I/tmp/pear/install/pear-build-rootFtFCbg/PDO-1.0.3/main -I/tmp/pear/install/PDO -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/PDO/pdo_dbh.c -fPIC -DPIC -o .libs/pdo_dbh.o
/tmp/pear/install/PDO/pdo_dbh.c: In function 'pdo_stmt_instantiate':
/tmp/pear/install/PDO/pdo_dbh.c:410: error: 'zval' has no member named 'refcount'
/tmp/pear/install/PDO/pdo_dbh.c:411: error: 'zval' has no member named 'is_ref'
/tmp/pear/install/PDO/pdo_dbh.c: In function 'pdo_stmt_construct':
/tmp/pear/install/PDO/pdo_dbh.c:435: error: 'zend_fcall_info' has no member named 'object_pp'
/tmp/pear/install/PDO/pdo_dbh.c:458: error: 'zend_fcall_info_cache' has no member named 'object_pp'
/tmp/pear/install/PDO/pdo_dbh.c: In function 'zim_PDO_setAttribute':
/tmp/pear/install/PDO/pdo_dbh.c:752: error: 'zval' has no member named 'refcount'
/tmp/pear/install/PDO/pdo_dbh.c: In function 'zim_PDO_getAttribute':
/tmp/pear/install/PDO/pdo_dbh.c:818: error: 'zval' has no member named 'refcount'
/tmp/pear/install/PDO/pdo_dbh.c: In function 'pdo_hash_methods':
/tmp/pear/install/PDO/pdo_dbh.c:1122: warning: assignment discards qualifiers from pointer target type
/tmp/pear/install/PDO/pdo_dbh.c:1126: warning: assignment discards qualifiers from pointer target type
make: *** [pdo_dbh.lo] Error 1
ERROR: `make' failed
7 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
building in /tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2
running: /tmp/pear/install/PDO_PGSQL/configure
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for PostgreSQL support for PDO... yes, shared
checking for pg_config... /usr/bin/pg_config
checking for openssl dependencies... yes
checking for PQescapeString in -lpq... yes
checking for PQsetnonblocking in -lpq... yes
checking for PQcmdTuples in -lpq... yes
checking for PQoidValue in -lpq... yes
checking for PQclientEncoding in -lpq... yes
checking for PQparameterStatus in -lpq... yes
checking for PQprotocolVersion in -lpq... yes
checking for PQtransactionStatus in -lpq... yes
checking for PQunescapeBytea in -lpq... yes
checking for PQExecParams in -lpq... no
checking for PQresultErrorField in -lpq... yes
checking for pg_encoding_to_char in -lpq... yes
checking for PQprepare in -lpq... yes
checking for PDO includes... checking for PDO includes... /usr/include/php/ext
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... f95
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f95 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 static flag -static works... yes
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2/libtool --mode=compile cc -I/usr/include/php/ext -I. -I/tmp/pear/install/PDO_PGSQL -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2/include -I/tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2/main -I/tmp/pear/install/PDO_PGSQL -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/PDO_PGSQL/pdo_pgsql.c -o pdo_pgsql.lo
mkdir .libs
cc -I/usr/include/php/ext -I. -I/tmp/pear/install/PDO_PGSQL -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2/include -I/tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2/main -I/tmp/pear/install/PDO_PGSQL -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/PDO_PGSQL/pdo_pgsql.c -fPIC -DPIC -o .libs/pdo_pgsql.o
/bin/sh /tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2/libtool --mode=compile cc -I/usr/include/php/ext -I. -I/tmp/pear/install/PDO_PGSQL -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2/include -I/tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2/main -I/tmp/pear/install/PDO_PGSQL -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/PDO_PGSQL/pgsql_driver.c -o pgsql_driver.lo
cc -I/usr/include/php/ext -I. -I/tmp/pear/install/PDO_PGSQL -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2/include -I/tmp/pear/install/pear-build-rootd2wHpV/PDO_PGSQL-1.0.2/main -I/tmp/pear/install/PDO_PGSQL -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/install/PDO_PGSQL/pgsql_driver.c -fPIC -DPIC -o .libs/pgsql_driver.o
In file included from /tmp/pear/install/PDO_PGSQL/php_pdo_pgsql.h:24,
from /tmp/pear/install/PDO_PGSQL/pgsql_driver.c:39:
/usr/include/libpq-fe.h:33:25: error: openssl/ssl.h: No such file or directory
In file included from /tmp/pear/install/PDO_PGSQL/php_pdo_pgsql.h:24,
from /tmp/pear/install/PDO_PGSQL/pgsql_driver.c:39:
/usr/include/libpq-fe.h:276: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/tmp/pear/install/PDO_PGSQL/pgsql_driver.c:633: warning: initialization from incompatible pointer type
make: *** [pgsql_driver.lo] Error 1
ERROR: `make' failed


Ahí me he quedado atascado, no sé si es por alguna otra causa. ¿Me podéis echar una mano?

Esto es lo que está instalado:

- Drupal 7.34.
- CentOS 5.6
- Versión Kernel 2.6.18-308.20.1.el5
- PostgreSQL 8.1.23
- PHP 5.4.41

(Si es posible, tratar de actualizar lo menos posible, no por mi, que yo lo haría, sino porque mi compañero no quiere [buuuaaaa] [buuuaaaa] [buuuaaaa] ).

Por otra parte, he visto en otras páginas que con yum se puede hacer un yum history. Pero cuando tecleo el comando, me sale esto:

Loaded plugins: fastestmirror, priorities
usage: yum [options] COMMAND

List of Commands:

check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
downgrade downgrade a package
erase Remove a package or packages from your system
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
grouplist List available package groups
groupremove Remove the packages in a group from your system
help Display a helpful usage message
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
localinstall Install a local RPM
makecache Generate the metadata cache
provides Find what package provides the given value
reinstall reinstall a package
repolist Display the configured software repositories
resolvedep Determine which package provides the given dependency
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
upgrade Update packages taking obsoletes into account


options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
--showduplicates show duplicates, in repos, in list/search commands
-e [error level] error output level
-q, --quiet quiet operation
-v, --verbose verbose operation
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--disableexcludes=[repo]
disable exclude from main, for a repo or for
everything
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
--nogpgcheck disable gpg signature checking
--disableplugin=[plugin]
disable plugins by name
--enableplugin=[plugin]
enable plugins by name
--skip-broken skip packages with depsolving problems
--color=COLOR control whether color is used
--samearch-priorities
Priority-exclude packages based on name + arch

Plugin Options:


¿Cómo es que no me sale como en otras páginas, que con yum history sí funciona? La versión de Yum es 3.2.22.

Muchas gracias y un saludo.
0 respuestas