When it comes to PECL/PEAR on a CentOS server, make sure the do the following commands as 'root':
'yum install php-devel zlib zlib-devel'
Then you should be able to do 'pecl install pdo_pgsql'.
Main Topics
Browse All TopicsHi,
I'm installing pdo_pgsql module on my server using 'pecl install pdo_pgsql' and get the following problem:
WARNING: channel "pecl.php.net" has updated its protocols, use "channel-update pecl.php.net" to update
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: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
/usr/bin/phpize: /var/tmp/PDO/build/shtool:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
7 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
/usr/bin/phpize: /var/tmp/PDO_PGSQL/build/s
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
Anyone know what is missing here? Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thanks,
Running :
yum list php-*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.netdna.com
* atomic: www.atomicorp.com
* base: centos.mirror.nac.net
* extras: mirror.steadfast.net
* updates: mirrors.netdna.com
addons | 951 B 00:00
atomic | 951 B 00:00
base | 2.1 kB 00:00
extras | 1.1 kB 00:00
updates | 951 B 00:00
Installed Packages
php.i386 5.2.11-2.el5.art installed
php-cli.i386 5.2.11-2.el5.art installed
php-common.i386 5.2.11-2.el5.art installed
php-devel.i386 5.2.11-2.el5.art installed
php-gd.i386 5.2.11-2.el5.art installed
php-imap.i386 5.2.11-2.el5.art installed
php-ldap.i386 5.2.11-2.el5.art installed
php-mbstring.i386
php-mcrypt.i386 5.2.11-2.el5.art installed
php-mhash.i386 5.2.11-2.el5.art installed
php-mysql.i386 5.2.11-2.el5.art installed
php-ncurses.i386 5.2.11-2.el5.art installed
php-odbc.i386 5.2.11-2.el5.art installed
php-pdo.i386 5.2.11-2.el5.art installed
php-pear.noarch 1:1.7.2-2.el5.art installed
php-pear-Auth-SAS
php-pear-Console-
php-pear-Crypt-CB
php-pear-Crypt-GP
php-pear-DB.noarc
php-pear-Date.noa
php-pear-File.noa
php-pear-HTTP-Req
php-pear-Image-Ca
php-pear-Image-Co
php-pear-Image-Gr
php-pear-Log.noar
php-pear-MDB2.noa
php-pear-MDB2-Dri
php-pear-Mail.noa
php-pear-Mail-Mim
php-pear-Net-SMTP
php-pear-Net-Siev
php-pear-Net-Sock
php-pear-Net-URL.
php-pear-Numbers-
php-pear-Numbers_
php-pecl-memcache
php-snmp.i386 5.2.11-2.el5.art installed
php-soap.i386 5.2.11-2.el5.art installed
php-sqlite2.i386 5.2.11-1.el5.art installed
php-xml.i386 5.2.11-2.el5.art installed
php-xmlrpc.i386 5.2.11-2.el5.art installed
Available Packages
php-Smarty.noarch 2.6.13-1.el5.art atomic
php-adodb.noarch 4.52-1.el5.art atomic
php-bcmath.i386 5.2.11-2.el5.art atomic
php-dba.i386 5.2.11-2.el5.art atomic
php-dbase.i386 5.1.6-15.el5.centos.1 extras
php-eaccelerator.i38
php-embedded.i386 5.2.11-2.el5.art atomic
php-fpdf.noarch 1.53-1.el5.art atomic
php-ioncube-loader.i
php-jpgraph.noarch 2.2-1.el5.art atomic
php-mssql.i386 5.2.11-2.el5.art atomic
php-pecl-Fileinfo.i3
php-pecl-apc.i386 3.1.2-1.el5.art atomic
php-pgsql.i386 5.2.11-2.el5.art atomic
php-process.i386 5.2.11-2.el5.art atomic
php-pspell.i386 5.2.11-2.el5.art atomic
php-readline.i386 5.1.6-15.el5.centos.1 extras
php-recode.i386 5.2.11-2.el5.art atomic
php-suhosin.i386 0.9.27-1.el5.art atomic
php-tidy.i386 5.2.11-2.el5.art atomic
php-zend-optimizer.i
php-zts.i386 5.2.11-2.el5.art atomic
yum install php-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.netdna.com
* atomic: www.atomicorp.com
* base: centos.mirror.nac.net
* extras: mirror.steadfast.net
* updates: mirrors.netdna.com
addons | 951 B 00:00
atomic | 951 B 00:00
base | 2.1 kB 00:00
extras | 1.1 kB 00:00
updates | 951 B 00:00
Setting up Install Process
Package php-devel-5.2.11-2.el5.art
Nothing to do
Hi,
It returns the result below:
yum install gcc autoconf make g++
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: mirror.steadfast.net
* atomic: www.atomicorp.com
* base: ftp.lug.udel.edu
* extras: mirror.steadfast.net
* updates: mirror.trouble-free.net
addons | 951 B 00:00
atomic | 951 B 00:00
base | 2.1 kB 00:00
extras | 1.1 kB 00:00
updates | 951 B 00:00
Setting up Install Process
Package gcc-4.1.2-46.el5.i386 already installed and latest version
Package autoconf-2.59-12.noarch already installed and latest version
Package 1:make-3.81-3.el5.i386 already installed and latest version
No package g++ available.
Nothing to do
Run the above commands. It updated and installed some packages, but then still got the same problem at 'pecl install pdo_pgsql'. I think the problem is because of known bug in PEAR which cause this error:
ERROR: `phpize' failed
I read that in this url http://kai.mactane.org/blo
But I don't have enough expertise to understand and fix those. Can you help?
Hi,
Luckily I found the website here http://systembash.com/cont
Thanks for both, who are really helping me.
Business Accounts
Answer for Membership
by: TheNauticanPosted on 2009-10-28 at 16:22:41ID: 25689286
the phpize failed error seems to indicate you need to install php5-dev first. /2009/08/i nstalling- php-extens ions- with- pecl-on.ht ml com/showth read.php?t =562817
Some info can be found here http://gnuski.blogspot.com
also could be issues with the tmp mount. Info found: http://www.webhostingtalk.
the solution was to run mount -o remount,exec,suid /tmp
Let me know if this help.