Installing pear on WAmp

TRY

Command: cd c:\wamp\bin\php\php5.3.0

Command: go-pear.bat

French version (http://www.6ma.fr/tuto/installer+pear+avec+wamp-455)

IF IT DOESN’T WORK if you are using php5.3.0 so you have refer to http://blog.pear.php.net/2009/07/01/php-53-windows-and-pear/

1) Locate the “php.ini” file.  In my case, I found it at this path:

C:\wamp\bin\php\php5.3.0\php.ini

Don’t use the WAMP system tray icon to edit this file. It didn’t work when I tried – you have to manually locate it.

2) Find the following line, in bold:

; http://php.net/phar.require-hash
;phar.require_hash = On

; http://php.net/phar.require-hash

;phar.require_hash = On

3) Uncomment the “;phar.require_hash = On” line by removing the semi-colon.

4) Change “On” to “Off”.

; http://php.net/phar.require-hash

phar.require_hash = Off

Fill in the fields. Done

ADD the Pear variable in your environment variables and check that the include_path=”.;c:\wamp\bin\php\php5.3.0\pear”

is in both of Wamps php.ini located at c:\wamp\bin\php\php5.3.0\php.ini and C:\wamp\bin\apache\apache2.2.11\php.ini.

Restart your computer


Installing the http_request package:

pear install Net_URL2

pear install HTTP_Request2-0.4.0 => install ok