title: pear installation in wamp
body: <p>I am running wamp 2.2 on windows 7. when I try to <b>pear install phpunit/PHPUNIT</b>. it shows some <strong>mkdir</strong> problem. Then I try </p>
  
  <pre><code>pear config-set autodiscover 1
  </code></pre>
  
  <p><b>PEAR_Config::writeConfigfile fopen&lt;'C:\windows\pear.ini','w'> faild&lt;'C:\windows\pear.ini'>: failed to open stream: Permission denied </b><br/>
  Then I checked my pear.bat file. and I see some warning below,</p>
  
  <pre class="lang-vb prettyprint-override"><code>REM launch pearcmd
  GOTO RUN
  :PEAR_INSTALL_ERROR
  ECHO PHP_PEAR_INSTALL_DIR is not set correctly.
  ECHO Please fix it using your environment variable or modify
  ECHO the default value in pear.bat
  ECHO The current value is:
  ECHO %PHP_PEAR_INSTALL_DIR%
  GOTO END
  :PEAR_INSTALL_ERROR2
  ECHO PHP_PEAR_INSTALL_DIR is not set correctly.
  ECHO pearcmd.php could not be found there.
  ECHO Please fix it using your environment variable or modify
  ECHO the default value in pear.bat
  ECHO The current value is:
  ECHO %PHP_PEAR_INSTALL_DIR%
  GOTO END
  :PEAR_BIN_ERROR
  ECHO PHP_PEAR_BIN_DIR is not set correctly.
  ECHO Please fix it using your environment variable or modify
  ECHO the default value in pear.bat
  ECHO The current value is:
  ECHO %PHP_PEAR_BIN_DIR%
  GOTO END
  :PEAR_PHPBIN_ERROR
  ECHO PHP_PEAR_PHP_BIN is not set correctly.
  ECHO Please fix it using your environment variable or modify
  ECHO the default value in pear.bat
  ECHO The current value is:
  ECHO %PHP_PEAR_PHP_BIN%
  GOTO END
  </code></pre>