Question : Cannot Install PEAR Packages

Trying to install PDO_INFORMIX and it says I have to install PDO first. So, I'm trying to do that and this is what I get:

c:\PHP\PEAR\PEAR>pecl install PDO
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
WARNING: php_bin c:\PHP\php.exe appears to have a suffix .exe, but config variab
le php_suffix does not match
ERROR: The DSP PDO.dsp does not exist.

Tried to follow all the instructions I've found here (http://blog.pear.php.net/2009/07/01/php-53-windows-and-pear/) and to no avail.

In one of attempts, I get this:

c:\PHP\PEAR>php -d phar.require_hash=0 go-pear.phar
Failed loading
PHP Warning:  PHP Startup: Unable to load dynamic library './ext\php_pdo_informi
x.dll' - The specified module could not be found.
 in Unknown on line 0
phar "C:\PHP\PEAR\go-pear.phar" SHA1 signature could not be verified: broken sig
naturePHP Warning:  require_once(phar://go-pear.phar/index.php): failed to open
stream: phar "C:\PHP\PEAR\go-pear.phar" SHA1 signature could not be verified: br
oken signature in C:\PHP\PEAR\go-pear.phar on line 1236

I've searched the Internet and I seem to be the only person on the planet getting this broken signature and signature could not verified messages.

Answer : Cannot Install PEAR Packages

On a standard windows build, PDO is already installed and active.

At a command prompt, type ...

php -n -m

The -n says ignore all config files and use the built in defaults.
The -m says show all modules.

For me, this shows ...

[PHP Modules]
bcmath
calendar
com_dotnet
Core
ctype
date
dom
ereg
filter
ftp
hash
iconv
json
libxml
mcrypt
mhash
mysqlnd
odbc
pcre
PDO
Phar
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]


If I use php -m ...

[PHP Modules]
bcmath
bz2
calendar
com_dotnet
Core
ctype
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mcrypt
mhash
mysqlnd
odbc
openssl
pcre
PDO
Phar
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
sqlsrv
standard
tidy
tokenizer
wddx
win32service
wincache
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]


To activate the informix PDO extension, you will need the php_pdo_informix.dll file.

Unfortunately, you will need to build this yourself at the moment. A lot of the non standard extensions are available from http://downloads.php.net/pierre/, but not this one.

You would also need the informix drivers. The php_pdo_informix.dll file is a bridge between PHP's PDO mechanism and the Informix drivers. PHP does not directly talk to the Informix database.

The source to the PDO driver is available via anonymous SVN from http://svn.php.net/viewvc/pecl/pdo_informix/

You can go with one of the stable tagged releases (the latest being http://svn.php.net/viewvc/pecl/pdo_informix/tags/RELEASE_1_2_6/) or the development trunk (http://svn.php.net/viewvc/pecl/pdo_informix/trunk).

Compiling PHP is not a simple point and click process, but is quite easy to achieve. You require a modern version of Microsoft Visual C++ compiler - I use the Express Edition just fine.

Regards,

Richard Quadling.
Random Solutions  
 
programming4us programming4us