Follow following steps to install pear on window using WAMP architecture:
- Go to command prompt using start->run->cmd
- Now navigate to directory which contains PHP. in my case C:\wamp\php. For different types of installation it might be c:\wamp\bin\php\php5.2.8
- Now type
go-pear and hit Enter key - Commands line will display following message, immediately afterward we pressed Enter:

Screen after go-pear command
- After this, it will appear to us a list numbered until the 10. Here simply we return to press Enter.

Screen after selection of system-wide installation
- Finished executing it will ask to us if we want that php.ini is modified, writes the letter “Y” and presses again Enter.

Confirm PHP.ini Edit
- Next it will be said to you that include_path will be updated, single press Enter.

Confirmation message of added include path
- And up to here the line of command arrived, (at the moment). As last message announces to us that a called file PEAR_ENV.reg has been created, which will add some windows environmet variables.

- It enters to “C:\wamp\php” and it gives double click to the file “PEAR_ENV.reg”. To the message that appears it gives in “Yes” and to the following one it gives “Accept”.
- restart your server via left click system try WAMP icon -> Restart all services
Now You have PEAR installed on your window machine system wide.

Posted by enam on April 24, 2010 at 12:54 PM
Thanks very helpful.
Posted by jack on May 15, 2011 at 8:26 PM
i downloaded wamp on x64 and i dont have any go-pear.bat in that folder, help?
Posted by swayer on December 6, 2011 at 8:13 AM
thanks! useful guide.