tags:

views:

813

answers:

2

I just made a new install of WAMP on Windows 7 and I'm trying to get PEAR to work. Things are going wrong from the very beginning. When I try to execute the go-pear.bat file, it shows me this.

phar "C:\wamp\bin\php\php5.3.1\PEAR\go-pear.phar" does not have a signature Warning: require_once(phar://go-pear.phar/index.php): failed to open stream: pha r error: invalid url or non-existent phar "phar://go-pear.phar/index.php" in C:\ wamp\bin\php\php5.3.1\PEAR\go-pear.phar on line 1236 Press any key to continue . . .

How can I help it that the file doesn't have a signature?

+3  A: 

Hi,

This blog-post might interest you : Pear: “go-pear.phar” Does Not Have a Signature

It explains how to change a configuration option in php.ini to avoid this error message, and what's said it for WAMP 2.0 and PHP 5.3, so might work in your case.

Pascal MARTIN
+1  A: 

Let’s try this from the PEAR directory. cd PEAR and let’s try that again.

php.exe -d phar.require_hash=0 go-pear.phar

Now the PEAR install runs fine.

luochong