gpt4 book ai didi

php - 在 MAMP MacOsX 上更新 PEAR

转载 作者:搜寻专家 更新时间:2023-10-31 21:15:20 24 4
gpt4 key购买 nike

目前我正在尝试在我的 mac os x 和 mamp 服务器上安装 phpunit:

pear config-set auto_discover 1pear install pear.phpunit.de/PHPUnit

我在安装过程中遇到的错误:

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

更新 1

这是我的 pear 配置。我假设我搞砸了本地和 mamp 安装(我不知道 mamp 也有 pear,所以我安装了本地的)。

我想 bin_dir、php_dir 和其他路径有问题吗?

Keefir-Samolet-iMac:MAMP jevgenismirnov$ pear config-showConfiguration (channel pear.php.net):=====================================Auto-discover new Channels     auto_discover    1Default Channel                default_channel  pear.php.netHTTP Proxy Server Address      http_proxy       PEAR server [DEPRECATED]       master_server    pear.php.netDefault Channel Mirror         preferred_mirror pear.php.netRemote Configuration File      remote_config    PEAR executables directory     bin_dir          /Users/jevgenismirnov/pear/binPEAR documentation directory   doc_dir          /Users/jevgenismirnov/pear/docsPHP 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/pearPEAR Installer cache directory cache_dir        /var/folders/k7/xpwbcbrs1xs8tlxjk5mvkwrr0000gp/T//pear/cachePEAR configuration file        cfg_dir          /Users/jevgenismirnov/pear/cfgdirectoryPEAR data directory            data_dir         /Users/jevgenismirnov/pear/dataPEAR Installer download        download_dir     /tmp/pear/installdirectoryPHP CLI/CGI binary             php_bin          /Applications/MAMP/bin/php/php5.3.6/bin/phpphp.ini location               php_ini          --program-prefix passed to     php_prefix       PHP's ./configure--program-suffix passed to     php_suffix       PHP's ./configurePEAR Installer temp directory  temp_dir         /tmp/pear/installPEAR test directory            test_dir         /Users/jevgenismirnov/pear/testsPEAR www files directory       www_dir          /Users/jevgenismirnov/pear/wwwCache TimeToLive               cache_ttl        3600Preferred Package State        preferred_state  stableUnix file mask                 umask            22Debug Log Level                verbose          1PEAR password (for             password         maintainers)Signature Handling Program     sig_bin          /usr/local/bin/gpgSignature Key Directory        sig_keydir       /Applications/MAMP/bin/php/php5.3.6/conf/pearkeysSignature Key Id               sig_keyid        Package Signature Type         sig_type         gpgPEAR username (for             username         maintainers)User Configuration File        Filename         /Users/jevgenismirnov/.pearrcSystem Configuration File      Filename         /Applications/MAMP/bin/php/php5.3.6/conf/pear.conf

最佳答案

好吧,我的错!

问题出在 2 个 pear 安装上。

所以运行后:

pear uninstall pear;pear config-set bin_dir /Applications/MAMP/bin/php/php5.3.6/bin;pear config-set doc_dir /Applications/MAMP/bin/php/php5.3.6/lib/php/doc;pear config-set ext_dir /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626;pear config-set php_dir /Applications/MAMP/bin/php/php5.3.6/lib/php;pear config-set data_dir /Applications/MAMP/bin/php/php5.3.6/lib/php/data;pear config-set php_bin /Applications/MAMP/bin/php/php5.3.6/bin/php;pear config-set test_dir /Applications/MAMP/bin/php/php5.3.6/lib/php/test;pear config-set www_dir /Applications/MAMP/bin/php5.2/lib/php/www

一切正常。

感谢您的帮助。

关于php - 在 MAMP MacOsX 上更新 PEAR,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10107311/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com