Update PEAR on MAMP MacOsX

Posted by Jevgeni Smirnov on Stack Overflow See other posts from Stack Overflow or by Jevgeni Smirnov
Published on 2012-04-11T13:50:23Z Indexed on 2012/04/12 5:29 UTC
Read the original article Hit count: 472

Filed under:
|

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 which I got 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 config. I assume that I messed up local and mamp installs(I didn't know that mamp also has pear, so I installed local one).

I suppose something wrong with bin_dir, php_dir and other paths?

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_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's ./configure
--program-suffix passed to     php_suffix       
PHP's ./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

© Stack Overflow or respective owner

Related posts about php

Related posts about pear