Installing PEAR on Windows 7 using phar

Dan Steele picture Dan Steele · Feb 14, 2011 · Viewed 27.3k times · Source

I'm trying to install PEAR for use with Wamp 2.1. The package does not come with any pear installation. I have read that you need to use http://pear.php.net/go-pear.phar to install PEAR for PHP 5.3 as the old go-pear.bat is now obsolete?

The instructions are to run the following command to install PEAR;

php -d phar.require_hash=0 PEAR/go-pear.phar

However, this is resulting in the following error;

manifest cannot be larger than 100 MB in phar "D:\wamp2\bin\php\php5.3.4\PEAR\go-pear.phar"

I'm sure this is due to a php setting I have correct somewhere, anyone have any ideas?

Answer

Flion picture Flion · Jan 29, 2016

Even with "save as" directly from the browser I got the same error. The solution for me was to download it directly through the command line:

cd C:/php/bin/
curl -OL http://pear.php.net/go-pear.phar

this properly downloaded the .phar file and after the installation properly started with:

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