• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

install pdo_pgsql error

Bogdan1

Regular Pleskian
Hey,
I have some issue with installation of pdo_pgsql...
I used pecl -> pecl install pdo_pgsql

PHP Version 5.4.16 (default php version)
here is error:

/var/tmp/PDO/pdo_dbh.c: In function 'pdo_stmt_instantiate':
/var/tmp/PDO/pdo_dbh.c:410:8: error: 'zval' has no member named 'refcount'
object->refcount = 1;
^
/var/tmp/PDO/pdo_dbh.c:411:8: error: 'zval' has no member named 'is_ref'
object->is_ref = 1;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_stmt_construct':
/var/tmp/PDO/pdo_dbh.c:424:2: error: too few arguments to function 'std_object_handlers.write_property'
std_object_handlers.write_property(object, &z_key, query_string TSRMLS_CC);
^
/var/tmp/PDO/pdo_dbh.c:435:6: error: 'zend_fcall_info' has no member named 'object_pp'
fci.object_pp = &object;
^
/var/tmp/PDO/pdo_dbh.c:458:6: error: 'zend_fcall_info_cache' has no member named 'object_pp'
fcc.object_pp = &object;
^
/var/tmp/PDO/pdo_dbh.c: In function 'zim_PDO_setAttribute':
/var/tmp/PDO/pdo_dbh.c:752:12: error: 'zval' has no member named 'refcount'
(*item)->refcount++;
^
/var/tmp/PDO/pdo_dbh.c: In function 'zim_PDO_getAttribute':
/var/tmp/PDO/pdo_dbh.c:818:28: error: 'zval' has no member named 'refcount'
dbh->def_stmt_ctor_args->refcount++;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_hash_methods':
/var/tmp/PDO/pdo_dbh.c:1126:20: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
ifunc->arg_info = funcs->arg_info + 1;
^
/var/tmp/PDO/pdo_dbh.c:1128:26: error: 'const struct _zend_arg_info' has no member named 'required_num_args'
if (funcs->arg_info[0].required_num_args == -1) {
^
/var/tmp/PDO/pdo_dbh.c:1131:50: error: 'const struct _zend_arg_info' has no member named 'required_num_args'
ifunc->required_num_args = funcs->arg_info[0].required_num_args;
^
/var/tmp/PDO/pdo_dbh.c:1133:9: error: 'zend_internal_function' has no member named 'pass_rest_by_reference'
ifunc->pass_rest_by_reference = funcs->arg_info[0].pass_by_reference;
^
/var/tmp/PDO/pdo_dbh.c:1134:9: error: 'zend_internal_function' has no member named 'return_reference'
ifunc->return_reference = funcs->arg_info[0].return_reference;
^
/var/tmp/PDO/pdo_dbh.c:1134:48: error: 'const struct _zend_arg_info' has no member named 'return_reference'
ifunc->return_reference = funcs->arg_info[0].return_reference;
^
/var/tmp/PDO/pdo_dbh.c:1139:9: error: 'zend_internal_function' has no member named 'pass_rest_by_reference'
ifunc->pass_rest_by_reference = 0;
^
/var/tmp/PDO/pdo_dbh.c:1140:9: error: 'zend_internal_function' has no member named 'return_reference'
ifunc->return_reference = 0;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_dbh_init':
/var/tmp/PDO/pdo_dbh.c:1242:37: warning: assignment from incompatible pointer type [enabled by default]
pdo_dbh_object_handlers.get_method = dbh_method_get;
^
/var/tmp/PDO/pdo_dbh.c: In function 'pdo_dbh_new':
/var/tmp/PDO/pdo_dbh.c:1413:37: error: 'zend_class_entry' has no member named 'default_properties'
zend_hash_copy(dbh->properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
^
make: *** [pdo_dbh.lo] Error 1
ERROR: `make' failed

running: make
/bin/sh /var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/libtool --mode=compile cc -I -I. -I/var/tmp/PDO_PGSQL -DPHP_ATOM_INC -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/include -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/main -I/var/tmp/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 /var/tmp/PDO_PGSQL/pdo_pgsql.c -o pdo_pgsql.lo
libtool: compile: cc -I -I. -I/var/tmp/PDO_PGSQL -DPHP_ATOM_INC -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/include -I/var/tmp/pear-build-rootzsS75N/PDO_PGSQL-1.0.2/main -I/var/tmp/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 /var/tmp/PDO_PGSQL/pdo_pgsql.c -fPIC -DPIC -o .libs/pdo_pgsql.o
/var/tmp/PDO_PGSQL/pdo_pgsql.c:22:20: fatal error: config.h: No such file or directory
#include "config.h"
^
compilation terminated.
make: *** [pdo_pgsql.lo] Error 1
ERROR: `make' failed

How can I install pdo_pgsql successfully?
 
Last edited:
Why

# yum install plesk-php54-pdo

is not enough for you?
 
Why

# yum install plesk-php54-pdo

is not enough for you?

[root@vps**** ~]# yum install plesk-php54-pdo
Loaded plugins: fastestmirror
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
vz-base | 951 B 00:00
vz-updates | 951 B 00:00
Loading mirror speeds from cached hostfile
* base: mirror0.babylon.network
* extras: mirror0.babylon.network
* updates: mirror0.babylon.network
No package plesk-php54-pdo available.
 
On my test Plesk 12 server installed on VPS I see:

[root@ppu12-0 ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id repo name status
base CentOS-6 - Base 4,926
epel Extra Packages for Enterprise Linux 6 - i386 9,354
updates CentOS-6 - Updates

Maybe your mirrors are outdated?
 
On my test Plesk 12 server installed on VPS I see:

[root@ppu12-0 ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id repo name status
base CentOS-6 - Base 4,926
epel Extra Packages for Enterprise Linux 6 - i386 9,354
updates CentOS-6 - Updates

Maybe your mirrors are outdated?
I see this:

[root@vps***** ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror0.babylon.network
* extras: mirror0.babylon.network
* updates: mirror0.babylon.network
repo id repo name status
!base/7/x86_64 CentOS-7 - Base 8,652
!extras/7/x86_64 CentOS-7 - Extras 149
!updates/7/x86_64 CentOS-7 - Updates 930
!vz-base vz-base 1
!vz-updates vz-updates 0
repolist: 9,732

I have OVH VPS. How could I fix that?
 
I suppose that you need to switch yum to default Odin repository instead of OVH mirrors.
 
Back
Top