Install PHPUnit and Pear correctly on OSX Leopard
source link: https://www.codesd.com/item/install-phpunit-and-pear-correctly-on-osx-leopard.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Install PHPUnit and Pear correctly on OSX Leopard
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!
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.
Related Articles
Error installing PHPUnit via pear
Unable to install phpunit / PHPUnit_Selenium pear installation
Is it possible to install PHPUnit without pear?
Problems installing pandas and numpy on Mac OSX
Allowed memory size of x error exhausted when installing PHPUnit with Yii
How to fix an error when installing the bulb to install phpunit?
No output trying to use Selenium with PhpUnit and Yii on wampserver on XpPro without Netbeans
Installing PHPUnit
Install PHPUnit 3.5.x without pear
What is the correct way to install brews and gems on OS X
How to install Glade in Mac OSX Leopard
How to install MySQL and the Python MySQL package on OS X Leopard? Or how can I learn to be a web developer using OS X?
rebuilding node-gyp fails when installing the web package and other packages on OSX
How to install phpunit on xampp via composer?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK