使用Mac OS X Sierra。
尝试安装pear,但导致PEAR / Proxy的错误不是phar中的文件。完全奇怪。有想法的人?
php -d detect_unicode = 0 go-pear.phar
1-12, 'all' or Enter to continue:
Beginning install...
Configuration written to /Users/louie/.pearrc...
Initialized registry...
Preparing to install...
installing phar:///Users/louie/Development/project/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.4.2.tar...
installing phar:///Users/louie/Development/project/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.4.1.tar...
installing phar:///Users/louie/Development/project/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.10.3.tar...
installing phar:///Users/louie/Development/project/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.1.1.tar...
installing phar:///Users/louie/Development/project/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.4.2.tar...
PHP Warning: require_once(phar://go-pear.phar/PEAR/Proxy.php): failed to open stream: phar error: "PEAR/Proxy.php" is not a file in phar "go-pear.phar" in phar:///Users/louie/Development/project/go-pear.phar/PEAR/Downloader.php on line 23
Warning: require_once(phar://go-pear.phar/PEAR/Proxy.php): failed to open stream: phar error: "PEAR/Proxy.php" is not a file in phar "go-pear.phar" in phar:///Users/louie/Development/project/go-pear.phar/PEAR/Downloader.php on line 23
答案 0 :(得分:0)
我也面临这个问题。我认为最新发布的pear package版本有问题。我安装了一个较旧的,工作正常。
答案 1 :(得分:0)
phar中缺少一个新文件...刚刚发布的pearweb_phars-1.10.4已经更正了。梨网站上的phars现已更新。