12

Install PHPUnit and Pear correctly on OSX Leopard

 2 years ago
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

advertisements

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

Installing PHPUnit via PEAR the install instructions for phpunit are running this: pear channel-discover pear.phpunit.de pear install phpunit/PHPUnit But fails with this error: Notice: fwrite(): send of 105 bytes failed with errno=10053 An establishe

Unable to install phpunit / PHPUnit_Selenium pear installation

I am trying to install PHPUnit_Selenium using the command pear install phpunit/PHPUnit_Selenium The version of pear that i am running is 1.9.4. The above command returned Attempting to discover channel "phpunit"... Attempting fallback to https i

Is it possible to install PHPUnit without pear?

Possible Duplicate: PHP - Is there a portable version of PHPUnit? On a Red Hat Linux machine, without root privileges, so can not use pear. Manual download leads to https://github.com/sebastianbergmann/phpunit/, but this seems a windows version since

Problems installing pandas and numpy on Mac OSX

I was playing with Python's pandas package before getting the O'Reilly book. When I tried to install pandas after installing xcode and EPDFree successfully the pandas installation using easy_install presented many warnings, and when I tested to see i

Allowed memory size of x error exhausted when installing PHPUnit with Yii

I'm following along with the book "Agile Web Application Development with Yii 1.1 and PHP5" and I just started the part about unit testing in chapter 2. When I follow the instructions on installing PHPUnit through PEAR, I receive a fatal error &

How to fix an error when installing the bulb to install phpunit?

I am not quite sure if the question belongs to this forum, so if not and you are about to close this question, please make a suggestion where else to ask this question. Basically, I need to install phpunit on Ubuntu 12.04. By doing so with the packet

No output trying to use Selenium with PhpUnit and Yii on wampserver on XpPro without Netbeans

I'm working my way through Agile-Web-Application-Development-with-Yii11-and-PHP5. I've installed PhpUnit and Selenium and started the Selenium server from a command line and left it running. I found a simple script to run and confirm that Selenium se

Installing PHPUnit

I have install PHPUnit using pear but when I try to make a test I get the following error on including the phpunit framework. this is the php test script <?php require_once ('PHPUnit/Framework'); class Mytest extends PHPUnit_Framework_TestCase { priv

Install PHPUnit 3.5.x without pear

Since the phpunit channel was shut down in 2014, I am looking for a way to install phpunit version 3.5.x without pear. The only answers that I have found explain how to use it with composer, but version 3.5.x does not exist as a composer package. I d

What is the correct way to install brews and gems on OS X

It seems every time I want to install something locally on Snow Leopard, I run into an issue about whether to install to /usr/local or whether or not to run install commands using sudo. I've read conflicting advice on this, including on stackoverflow

How to install Glade in Mac OSX Leopard

How can I install Glade in Mac OSX Leopard? I haven't found any guide that really helped me. Thanks!I suggest using the MacPorts package manager. They have several packages available for installing Glade (as well as libglade): Glade 2 Glade 3 Glade 3

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?

I'm new to the Mac OS X, and I'm just about ready to throw my brand new MacBook Pro out the window. Every tutorial on setting up a Django development environment on Mac OS X Leopard is insidiously wrong. They are all skipping over one step, or assumi

rebuilding node-gyp fails when installing the web package and other packages on OSX

I'm on OS 10.10.13, with node v0.12.4 and npm v2.10.1. Whenever I run the following command to install webpack npm install webpack --save-dev --save-exact, I get the following error when node-gyp rebuild is called: > [email protected] install /Volumes/M

How to install phpunit on xampp via composer?

as implied at : (End of Life for PEAR Installation Method) installing the phpunit via pear is not supported .so how can i install that on xampp via composer? need to uninstall prior phpunit on xampp for new one ? composer global require phpunit/phpun

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK