sudo pear install Log
sudo pear channel-discover pear.survivethedeepend.com
sudo pear install --alldeps deepend/Mockery
torsdag 22 september 2011
torsdag 15 september 2011
Install PHPUnit on Mac os x Lion
php is pre-installed on Lion. PHPUnit is not, and pear is not. Step by step:
- curl http://pear.php.net/go-pear.phar > /tmp/go-phear.phar
- sudo php /tmp/go-phear.phar
- Type 1 to change pear home, change to /usr/local/pear
- Add /usr/local/pear/bin/pear to .profile or, in my case .zprofile
- (This step is only for non-existing php.ini) sudo cp /etc/php.ini.default /etc/php.ini
- sudo vi /etc/php.ini
- Edit include path to: include_path = ".:/usr/local/pear/share/pear/"
- Install phpunit
sudo pear channel-discover pear.phpunit.de sudo pear channel-discover pear.symfony-project.com
sudo pear channel-discover pear.symfony.com sudo pear channel-discover components.ez.no sudo pear install --alldeps phpunit/PHPUnit
- Done. Try with phpunit. (Possibly after a rehash)
Prenumerera på:
Inlägg (Atom)