在MacOS Mojave 10.14.3上安装pear

问题描述 投票:2回答:2

我尝试安装梨:

curl -O https://pear.php.net/go-pear.phar

php -d detect_unicode=0 go-pear.phar

我收到警告:

PHP警告:require_once(phar://go-pear.phar/PEAR/REST/13.php):无法打开流:phar错误:“PEAR / REST / 13.php”不是phar中的文件“go- pear.phar“in phar:///Users/maksat/go-pear.phar/PEAR/Config.php on the line 2067

目录/Users/maksat/pear/bin是空的

我该如何解决这个问题?

我的操作系统:MacOS Mojave 10.14.3

php macos pear pecl
2个回答
2
投票

我也有一些问题,这对我有用:

curl -0 https://objects-us-east-1.dream.io/kbfiles/pear/go-pear.phar


0
投票

正如this answer正确建议您可以使用Xdebug中的this tool并检查您的具体案例的建议。

© www.soinside.com 2019 - 2024. All rights reserved.