I've installed pear using this guide http://t-machine.org/index.php/2008/12/28/how-to-install-pear-on-os-x-105/
In /etc/php.ini my include_path = ".:/usr/local/PEAR"
PHPUnit is installed under /usr/local/PEAR/PHPUnit using sudo pear install phpunit/PHPUnit(I get an error otherwise)
Yet when I try execute phpunit I'm getting this error
Warning: require_once(PHPUnit/Util/Filter.php): failed to open stream: Not a directory in /usr/local/bin/phpunit on line 44
Fatal error: require_once(): Failed opening required 'PHPUnit/Util/Filter.php' (include_path='.:') in /usr/local/bin/phpunit on line 44
I'm just wondering has anyone got an idea of what the problem is or a complete(and correct guide) on installing pear osx.
Thanks!
Best Answer
Just a quick guess, that could be wrong, but perhaps you may need to add a trailing slash to the path like this:
include_path = ".:/usr/local/PEAR/"
Edit: somehow /usr/local/PEAR is not in your include path as
(include_path='.:')
in your error message shows.