Current I am trying to install phpunit on my mac os x and mamp server:
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
Errors I received during installation:
Validation Error: This package.xml requires PEAR version 1.9.4 to parse properly, we are version 1.9.2
pear upgrade pear
Nothing to upgrade
UPDATE 1
This is my pear. I assume that I messed up the local and matte settings (I did not know that moms also have a pear, so I installed a local one).
I suppose something is wrong with bin_dir, php_dir and other ways?
Keefir-Samolet-iMac: MAMP jevgenismirnov $ pear config-show
Configuration (channel pear.php.net):
=======================================
Auto-discover new Channels auto_discover 1
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config
PEAR executables directory bin_dir / Users / jevgenismirnov / pear / bin
PEAR documentation directory doc_dir / Users / jevgenismirnov / pear / docs
PHP extension directory ext_dir /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/
PEAR directory php_dir / Users / jevgenismirnov / pear / share / pear
PEAR Installer cache directory cache cache_dir / var / folders / k7 / xpwbcbrs1xs8tlxjk5mvkwrr0000gp / T // pear / cache
PEAR configuration file cfg_dir / Users / jevgenismirnov / pear / cfg
directory
PEAR data directory data_dir / Users / jevgenismirnov / pear / data
PEAR Installer download download_dir / tmp / pear / install
directory
PHP CLI / CGI binary php_bin /Applications/MAMP/bin/php/php5.3.6/bin/php
php.ini location php_ini
--program-prefix passed to php_prefix
PHP ./configure
--program-suffix passed to php_suffix
PHP ./configure
PEAR Installer temp directory temp_dir / tmp / pear / install
PEAR test directory test_dir / Users / jevgenismirnov / pear / tests
PEAR www files directory www_dir / Users / jevgenismirnov / pear / www
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
PEAR password (for password
maintainers)
Signature Handling Program sig_bin / usr / local / bin / gpg
Signature Key Directory sig_keydir /Applications/MAMP/bin/php/php5.3.6/conf/pearkeys
Signature Key Id sig_keyid
Package Signature Type sig_type gpg
PEAR username (for username
maintainers)
User Configuration File Filename /Users/jevgenismirnov/.pearrc
System Configuration File Filename /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf
source
share