Installing Pear with Wamp

I’m having problems installing pear on my local machine that has Wamp installed. Full setup as follows

Windows XP Pro
Wamp Server Version 2.0
php 5.3.0

I’m reading all over the net that pear has install issues with php 5.3.

if i open a dos window and type


I get an error saying:

Could not open input file: PEAR\go-pear.phar

I’ve tried the workaround that is stated as getting round this problem

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

but this doesn’t work as I get this error

Could not open input file: go-pear.phar

I have tried the non-pharred version from [COLOR=#b85b5a][/COLOR] and run it in the command window using the command below and also from a browser window by pointing to go-pear.php

php -q go-pear.php

I get lots of "PHP Deprecated: Function ereg() is deprecated in" errors and the install doesn’t go correctly.

I can’t find anything on the net how to get pear installed on Wamp and php 5.3 and would very much appreciate some help.

Thanks for your time reading this and hope someone get help me out.

I did the exact same thing yesterday and had the same problems, but i found a post on the pear blog that was really useful.

I followed ‘Andi’s’ advice and did the following.

Make sure that the path to the PHP executable is in your windows PATH environment variable. At the same time make sure there are no previous PEAR variables hanging around in there.

Now edit the ‘go-pear.bat’ file at C:\wamp\bin\php\php5.3.0\go-pear.bat to look like the following:

set PHP_BIN=php.exe
rem %PHP_BIN% -d output_buffering=0 PEAR\\go-pear.phar
php -d phar.require_hash=0 PEAR\\go-pear.phar

Finally run the .bat file from explorer, not a command prompt, and it should run the PEAR installer for you.