title: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in /usr/lib/php/PHPUnit/Autoload.php on line 64
body: <p>I am trying to install phpUnit on my MAC 10.8 osx.</p>
  
  <p>However everytime I execute the command phpunit on the terminal, I am getting the following error.: 
  mkothari-nbook:~ mkothari$ phpunit
  PHP Warning:  require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in /usr/lib/php/PHPUnit/Autoload.php on line 64
  PHP Fatal error:  require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.:/php/includes') in /usr/lib/php/PHPUnit/Autoload.php on line 64</p>
  
  <p>I have tried to update the php.ini file with the following paths but none have given me success with the installation:</p>
  
  <pre><code>include_path=".:/usr/local/php/pear/"
  ;include_path = ".:/usr/lib/php/pear"
  ;include_path = “.:/usr/lib/php/PHPUnit”
  </code></pre>
  
  <p>MY phpunit files are located at this location: </p>
  
  <pre><code>php /usr/lib/php/PHPUnit/Util/GlobalState.php
  php /usr/lib/php/PHPUnit/Util/InvalidArgumentHelper.php
  php /usr/lib/php/PHPUnit/Util/PHP.php
  php /usr/lib/php/PHPUnit/Util/Printer.php
  php /usr/lib/php/PHPUnit/Util/String.php
  php /usr/lib/php/PHPUnit/Util/Test.php
  php /usr/lib/php/PHPUnit/Util/TestSuiteIterator.php
  php /usr/lib/php/PHPUnit/Util/Type.php`enter code here`
  php /usr/lib/php/PHPUnit/Util/XML.php
  </code></pre>
  
  <p>Can anyone please help</p>